2012年6月4日星期一

Twitter Changes Incoming: Faster Speeds, No More Hashbang URLs

Twitter yesterday announced several major infrastructure changes that it would roll out to its site in the coming weeks on the Twitter Engineering blog. The changes are all aimed at optimizing speeds on Twitter, not only for displaying pages to users, but also when writing tweets.

According to Dan Webb, Twitter’s Engineering Manager,? the company decided to move the rendering to the server which dropped the initial page loading time to 1/5th of what it has been on the old Twitter architecture. Users benefit from this approach as well as their browser’s rendering performance now has less of an impact when it comes to these loading times.

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.

In addition, permalink urls on Twitter are no longer using hasbangs (#!)? to reduce page loading times on pages that made use of them further.? The removal gets rid of a lengthy process that Webb describes in the blog post:

When you come to twitter.com, we want you to see content as soon as possible. With hashbang URLs, the browser needs to download an HTML page, download and execute some JavaScript, recognize the hashbang path (which is only visible to the browser), then fetch and render the content for that URL. By removing the need to handle routing on the client, we remove many of these steps and reduce the time it takes for you to find out what’s happening on twitter.com.

twitter speed improvements

Twitter finally made changes to the JavaScript architecture on the site, by arranging all code as CommonJS modules delivered via AMD.

Twitter users will find that part of the architectural changes are already in place, for instance on the permalink pages, while other changes are going to be rolled out in the coming weeks. Are you noticing speed improvements when opening permalinks on Twitter?

Twitter Sues Twitter Spam Tool Providers
Load Google+ Button Asynchronously For Faster Loading Times
How To Enable HTTPS On Twitter
Power Twitter For Chrome
Twitter notifier for Firefox

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.


About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.Author: , Wednesday May 30, 2012 -
Tags:,

You are here: Home ? companies ? Twitter ? Twitter Changes Incoming: Faster Speeds, No More Hashbang URLs

Click on the following link(s) to read more about Twitter

View the original article here

没有评论:

发表评论