Technology content trusted by users in North America and around the world.
4,957 Articles | 29,927 Posts
Select Your Edition:  
Tweakipedia
A wealth of
tech information!

TRENDING NOW: Xbox One - Just what is Microsoft thinking?!
USA EditionYou are located: Home > All News > Internet & Websites News > Twitter improves performance, lowers page load times to 20% of what they were before

Twitter improves performance, lowers page load times to 20% of what they were before

By: (more) | Internet & Websites News | Posted: May 29, 2012 11:42 pm

Twitter has announced updates to its website which they claim has decreased page load times down to 20% of what they were previously. The old system used the browser to render JavaScript which was groundbreaking at the time. It does have a disadvantage, however, in that it misses out on optimizations only available to the server.

 

twitter_improves_performance_lowers_page_load_times_to_20_of_what_they_were_before

 

As such, Twitter is bringing some of the front-end grunt work back onto the servers in order to speed up load times. As Twitter says, "To connect you to information in real time, it's important for Twitter to be fast." Part of the change is not using # (hashbang) in the permalink URLs to improve initial load times.

 

Another update is to decrease the "time to first Tweet." This is where Twitter has managed to decrease page load times to 1/5 of what they were previously. The general, watered down version of how this works is to take the JavaScript out of the equation and render the content on the server. This removes the slowdown from old browsers or slow machines. Twitter explains in more detail:

 

Before starting any of this work we added instrumentation to find the performance pain points and identify which categories of users we could serve better. The most important metric we used was "time to first Tweet". This is a measurement we took from a sample of users, (using the Navigation Timing API) of the amount of time it takes from navigation (clicking the link) to viewing the first Tweet on each page's timeline. The metric gives us a good idea of how snappy the site feels.

 

Looking at the components that make up this measurement, we discovered that the raw parsing and execution of JavaScript caused massive outliers in perceived rendering speed. In our fully client-side architecture, you don't see anything until our JavaScript is downloaded and executed. The problem is further exacerbated if you do not have a high-specification machine or if you're running an older browser. The bottom line is that a client-side architecture leads to slower performance because most of the code is being executed on our user's machines rather than our own.

 

There are a variety of options for improving the performance of our JavaScript, but we wanted to do even better. We took the execution of JavaScript completely out of our render path. By rendering our page content on the server and deferring all JavaScript execution until well after that content has been rendered, we've dropped the time to first Tweet to one-fifth of what it was.

 

There are many other improvements discussed in the post on Twitter's engineering blog, so I encourage you to check it out for yourself if you are interested. The Twitter blog post can be found on Twitter's engineering blog here.

Related Tags



Further Reading: Read and find more Internet & Websites news at our Internet & Websites news index page.

TweakTown News RSS FeedDo you get our news RSS feed? Get It! Got a news tip? Tell Us!

Post a Comment about this news



Check out our
RSS feeds!
  • Upcoming Content: MSI Z77A-GD65 Gaming Series (Intel Z77) Motherboard Review
  • Upcoming Content: HGST Travelstar 7K1000 1TB 2.5" Hard Drive Review
  • Upcoming Content: Western Digital My Passport Edge for Mac 500GB External HDD Review
  • Upcoming Content: PQI Air Card 4GB Wi-Fi SDHC Review
  • Upcoming Content: LaCie CloudBox 1TB Personal NAS Review
  • Upcoming Content: Star Trek: The Next Generation - Season Three (1989) Blu-ray Review
  • Upcoming Content: The Hobbit: An Unexpected Journey (2012) Blu-ray Movie Review
  • Upcoming Content: Whatever happened to Comodo Time Machine?
  • Upcoming Content: SuperSpeed RamDisk Plus 11 Software Review
  • Upcoming Content: ADATA DashDrive Elite UE700 USB 3.0 Flash Drive Review
  • Upcoming Content: MyDigitalSSD BP4 240GB mSATA Review


Internet & Websites News Posts

View More Internet & Websites News Posts


TweakTown Web Poll

Question: What new stuff are you most excited to see at Computex Taipei 2013?

Cases, Coolers & PSU’s

CPU's

Gadgets

GPU's & Video Cards

Keyboards & Mice

Laptops, Tablets & Phones

Motherboards & Chipsets

New Tech

SSD's & Memory

Booth Babes

or View the Results

View More Polls

Forum Activity

View More Forum Posts

Internet & Websites Press Releases

View More Internet & Websites Press Releases