4 ms·
1) Minify your JS: http://www.crockford.com/javascript/jsmin.html http://www.crockford.com/javascript/jsmin.html 2) Combine it into one file: http://www.thinkv
by nickb 18y ago
1) Minify your JS: http://www.crockford.com/javascript/jsmin.html http://www.crockford.com/javascript/jsmin.html
2) Combine it into one file: http://www.thinkvitamin.com/features/webapps/serving-javascript-fast http://www.thinkvitamin.com/features/webapps/serving-javascr...
3) Gzip before delivering to clients
or...
use just Google JS API: http://ajaxian.com/archives/announcing-ajax-libraries-api-speed-up-your-ajax-apps-with-googles-infrastructure http://ajaxian.com/archives/announcing-ajax-libraries-api-sp...
- jbyers 18y ago... 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.