3 ms·
I've found the best way is just just `cat` all my js files together, and just include that one...
by psadauskas 17y ago
I've found the best way is just just `cat` all my js files together, and just include that one...
- michaelfairley 17y agoThe article points out that that strategy will cause your page to block while it's loading. See http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/ http://www.stevesouders.com/blog/2009/04/27/loading-scripts-... for more info.
- psadauskas 17y agoNot if you put it at the bottom. Yes, it does block the page, but hopefully your page will degrade gracefuly until the js is loaded. If it doesn't, then you want it at the top, where it will block. It will load slower, sure, but people won't have to see a broken site.