Hacker News new | ask | show | jobs
Optimize Javascript Pages
5 points by missenlinx 6586 days ago
I'm curious to know what everyone does to speed page load time when using fairly large frameworks like prototype or scriptacululous.

Now I understand the best solution would be to not use them but in my case this isn't an option.

4 comments

... and don't use one of the packing (NB: packing, not minifying) approaches unless you measure and understand the performance impact on clients first. Large packed JS can take hundreds of ms to unpack on slow clients.
A good option is to put the files at the end of the page. The page won't load faster but the rendering will be done earlier. The user will see a faster page.

Try to follow Yahoo! performance rules : http://developer.yahoo.com/performance/rules.html

Do lazy loading. Although it doesn't speed up loading really, it helps to create a smooth user experience.
scriptacululous by default loads like 5 separate files. Only load the ones you need!!