4 ms·
Gzipping is especially important for large JavaScript heavy apps. 280slides loads about 5x faster gzipped than not. If you're really worried about the performa
by tlrobinson 18y ago
Gzipping is especially important for large JavaScript heavy apps. 280slides loads about 5x faster gzipped than not.
If you're really worried about the performance hit of gzipping, you can cache gzipped versions of static resources.
- aristus 18y agoHow do you deal with the time it takes to parse a large Javascript file? Past 500KB or so it can take several seconds.
- enomar 18y agoAre you minifying your javascript? 500KB is pretty huge. Does every user need that? Perhaps you can use a smaller bootstrap script to pull down only what's needed when it's needed.
- aristus 18y agoSure -- it's basically half of YUI. Unminified it's 2.2MB. I've found that the time it takes to parse and load (not download) the javascript can be significant. I get away with showing content quickly and loading scripts in the background while the user is reading.