Hi Pedro,
Thank you for contacting us and I'll be happy to assist.
1 - Why are you loading files when there is no Toolset elements on the page? Toolset should be able to detect if any toolset related elements are on the page and call css/js files.
- We're constantly improving how the resources like CSS and JS files are loaded through the Toolset plugins to keep the website's loading times at check.
The way some of the features work, early detection of Toolset elements becomes tricky, but we do have plans to revamp how resources are loaded in general.
While I don't have a time estimate to share at the moment, you can add your voice to this matter, by submitting this as a feature request at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
2 - Why are admin styles beeing loaded on the frontend? I tested without beeing logged in on the backend.
- The admin styles that you mentioned are needed for showing the Toolset related menu items in the WordPress' default admin bar at the top.
But your observation is correct and they seem to be loading even for regular (non-logged-in) visitors. I'm going to pass on these findings to the concerned team for further review and will keep you updated with the progress through this ticket.
3 - Why are several calls to scripts when they can be combined?
- Different Toolset plugins require a different set of CSS and JS files and this is why they're loaded in smaller modules.
The reason, Toolset doesn't apply CSS and JS code minification/consolidation out-of-the-box is because different cache and code optimizations plugins and even themes adopt different strategies to load them. To avoid conflicts, this is left so that users can perform these optimizations, using the preferred plugin of choice.
The following article reviews some of the popular performance plugins:
hidden link
Note: If you feel that this is something that should be offered out-the-box too, you can submit a feature request for this too.
3 - Why is fontawesome beeing loaded even when i don't use it? Went to Settings and i see no option to disable it.
- I couldn't reproduce this on my test website with the latest versions of Types, Layouts, Forms, and Views.
Can you please share a link to an example page, where Font Awesome icons are being loaded, without any Toolset elements and I'll be happy to investigate this further.
For future reference, please note that as per our support policy ( https://toolset.com/toolset-support-policy/ ), only one question or issue can be addressed through a single ticket.
You're welcome to open a new ticket for each new question or concern.
regards,
Waqar