javascript - How to properly compress Jquery and lots of plugins? -
I am trying to clean a site's JavaScript. I think the title of my site is growing further:
& lt; Script type = "text / javascript" src = "jquery.base.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin1.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin2.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin3.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin4.js" & gt; & Lt; / Script & gt;
I have good information about the negative effects of many requests. Many JSs are embedded in the site, which will require dragging into external files. Can I paste it and run it through some compression or will it cause issues? I hope someone has some similar experience.
I recommend that you see good practices in combination and caching javascript
Comments
Post a Comment