PDA

View Full Version : batch load multiple javascript + css files



moscarda
01-24-2009, 10:18 PM
can anyone tell me how to load multiple css files and javascripts on the same page at once? i've heard this will minimize page load time and requests.

moscarda
02-07-2009, 05:05 AM
pleeeeeeeeeeaze?

Snookerman
02-07-2009, 09:30 AM
There are a few things you can do, try to merge files to get fewer server requests, compress them to reduce the size, put the JavaScript files at the bottom if possible to allow other things to load first, etc. To get more info, take a look at this article:
http://nettuts.com/articles/general/15-tips-to-speed-up-your-website-and-optimize-your-code/ (http://nettuts.com/articles/general/15-tips-to-speed-up-your-website-and-optimize-your-code/)

Good luck!