Suggestion about combining/grouping assets
-
This is a suggestion not support topic.
I know an admin should be able to figure this out, but it would be cool if Hummingbird recommends or labels scanned assets to be combined, based on whether it’s a front-end/public asset. So that way, it wouldn’t combine stuff that normally only appears in the back-end or to admins only (yoast-admin-bar.css etc) that regular users don’t need to load, shaving off the combined filesize. Or, you could add it to the Filters, which now only has By Plugin or Theme.
So the next is an advanced idea and may turn out to be too cumbersome but here we go..
What if as a Pro feature you can group combined assets (public, admin, etc), which would cache a separate combined file for each group, and then even conditionally deploy them with set rules. For example, deploy a combined group “if user is admin” or “post/page = __” etc. A good case example here is if we have a fancy page that uses a lot of third-party assets, and we only load that combined file with a page rule.
I suppose that could get a bit troublesome though with pages/posts being updated or deleted, easy to lose track. Perhaps it would have to reflect both on the Asset Optimization page, and also on the post edit pages themselves – like a little block that shows “Combined assets being used here: blah.min.css, blah2.min.css”. Or if none being used yet, could select from a dropdown all the available groups that we made on the Asset Optimization page. Then likely, groups that aren’t being used by any pages/posts at all would have to be flagged back on the Asset Optimization page “Not Being Used” for periodic review and removal.
Thanks for reading!
- The topic ‘Suggestion about combining/grouping assets’ is closed to new replies.