Combine just a certain group of assets?
-
Hi,
I love the idea behind your plugin.
I’ve found that on my site, combining .js and .css files might not be a good solution, as many pages have a slightly different combination of .js/.css files.
As such, one single combined file will not work for all the pages, and the user does not make good use of his browser cache by having to redownload a new combined file for each different page he visits.Wouldn’t a good solution be to combine groups of .js and .css files, instead of “all” of them?
e.g. I could combine all of the gravityform .js (I have about 6 because of all the add-ons), and serve those as a single file.. then I can decide which pages this group of .js needs to be excluded from (presumably, where there is no form!)
Then I could determine other groups that are consistently on every page… and leave out the odd javascripts that are rarely on pages.Would love to hear what you think?
- The topic ‘Combine just a certain group of assets?’ is closed to new replies.