Hello, let me ask for some additional feedback from the team. I was initially focused on removing the Google Fonts file you mentioned specifically, and I don't have any information on hand about these other assets. At first glance they do appear to be limited to Blocks elements, but I would like to be able to give you a more definitive answer.
I didn't receive any information about whether or not the assets are needed for any reason, so some trial and error may be needed here to determine whether the display of any elements is impacted. To some degree it could also depend on your theme and other plugins, and the styles they include that intersect with the styles applied by these dequeued assets. You may need to add custom CSS to override issues that pop up when these styles are dequeued.
Let me know if you have questions about that, or if the stylesheets are not dequeued as expected.
Good, I do sees the ones I mentioned removed. Thanks!
Can you please confirm the the following stylesheets are needed on the front end ( i see these as well, which I didn't realize before, or perhaps they were added after the others were dequeued):
Okay sure, I have asked Nigel to take a look. I'm not sure what information we have available but I'll let you know what I find out when I return on Sunday. My day is closing here and I'm off Fridays and Saturdays, FYI.
Let me jump in here to give a bit of background explanation.
With scripts in principle it is reasonably straightforward to only include the required scripts, as script links are typically added to the footer, so the page has been rendered at the point and its content is known.
Stylesheets are more problematic because they are added to the document head, and the page content isn't known at the time as it hasn't been rendered yet, so some stylesheets are added in case they might be needed on a page by some Toolset-based content.
It is precisely because of this that it is difficult to give a general solution to customising which assets are loaded, because it depends on the content (and if it didn't the plugin could optimise what is included automatically).
Over time we've gone through various iterations to improve this, but also things can be overlooked or extra assets may be added as the plugins evolve and features expand.
Right now some of the assets you've identified are earmarked to be removed in the upcoming plugin releases, which barring any last minute problems with testing, should be released by the middle of the coming week.
So rather than aim at a moving target, if it's okay with you, I suggest I pause responding to these individual requests to remove this or that asset until the new plugins are available.
I can then offer a more general solution based on the latest versions, where you can comment in or out those assets that you want to remove. If you only have Toolset content on certain pages you could specify whitelists of pages where the Toolset assets are untouched, and where otherwise they are removed so they don't affect non-Toolset pages.
Hello, I have a quick update for you. We have a fairly major project underway where our developers are optimising the assets that get loaded on the front-end and will bundle and minimise them ourselves, so Toolset will load only a single JS and CSS file. I hope to have more information about this project soon, and will continue to update you here.
Quick update to let you know we have implemented major refactoring of Toolset's assets, and the latest versions of Toolset plugins implement more streamlined asset optimization and loading mechanisms. If you have not yet been prompted to update to the latest versions of Toolset plugins, you may need to go to Plugins > Add new > Commercial tab, then scroll to the Toolset installer and click "Check for updates".