One more feedly performance improvement

Problem. Every time you open a firefox window, firefox loads the feedly extension. Despite the fact that all the js files are bundled into a single .js file and that the code is minimized, the size of the JS file is around 850Kb and loading that script takes about 250ms. Because of the tracemonkey optimizations, we noticed that that time is actually a little higher in firefox 3.5. For users who open a lot of windows, the extra 250-300ms has an impact on how snappy the browser feels.

Solution. We took a few days and changed how streets loads components so that instead of loading the entire 850Kb of Javascript code, the JS code is loaded on demand as the user starts interacting with the feature needing that JS code.

Result. As part of 1.2.265, when you open a new window, only the code of the extension “base+boot”  is loaded (about 180kb), which only needs 30-40ms to get loaded (1/8 of the impact). Another side effect of this change is that the feedly mini toolbar is now much lighter.

A cool feature and one more step towards being a well behaved firefox add-on.

Author: @feedly

Read more. Know more.

2 thoughts on “One more feedly performance improvement”

Comments are closed.