Joining and compressing all javascript files together - good idea?
Posted
by
Tomáš Zato
on Pro Webmasters
See other posts from Pro Webmasters
or by Tomáš Zato
Published on 2014-08-23T09:57:06Z
Indexed on
2014/08/23
10:36 UTC
Read the original article
Hit count: 189
Curently, I avoid loading any unnecesary scripts on individual pages of my site. I have a class that remembers all javascript files that were requested during PHP processing and adds them to HTML.
I was just thinking that I could merge the current set of files, save the result in special directory and let the browser download just one, big file. Since the number of possible combinations is not very high, I would end up with about 10 combined files for different pages.
I've never seen that on any site. What are the reasons not to do it? I need very fast page load.
© Pro Webmasters or respective owner