Optimize Javascript Pages

5 points by missenlinx ↗ HN
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.

5 comments

[ 0.27 ms ] story [ 21.7 ms ] thread
... 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.
scriptacululous by default loads like 5 separate files. Only load the ones you need!!
Do lazy loading. Although it doesn't speed up loading really, it helps to create a smooth user experience.