January 12, 201115 yr I have seen some cool JQuery scripts that I wouldn't mind using on my site. For the sake of tidiness, I would like to try condensing them all in one file, and linking to that from the web pages, instead of having 5 or 6 seperate links for each script within the HTML. I'm not sure which is the best way though, doing it like this, or just keeping everything seperate. Would there be a load time increase on the page, or any other problems? I'm guessing it wouldn't alter the load times and I could improve them slightly if I stripped out whitespace etc. from the newly combined single file? Any advice is appreciated. Thanks, Stu Edited January 12, 201115 yr by StuartPB
January 12, 201115 yr Keep em separate during development - push them into one file (and minimise it) for production. A good IDE like Netbeans can reformat minimised JS back into it's original format - but failing that, keep hold of your full fat scripts for later use.
Create an account or sign in to comment