Skip Navigation

[Resolved] Does Toolset load any JS, CSS or anything else in the front-end?

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user asks if Toolset enqueue scripts and styles to the frontend. He is trying to optimize the loading speed of the site.

Solution:
Yes, Toolset views/blocks and forms will load some styles and scripts to the frontend. The latest release of Views/Blocks has implemented an optimization technique that lazy loads the scripts and styles using Javascript. This behavior can be disabled using a constant in wp-config.php file. Check it on this previous ticket

https://toolset.com/forums/topic/enqueue-wordpress-child-theme-css-files-after-toolset-blocks-style-css/

That way, you can dequeue Toolset files when they are not needed.

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by adrian-mihaiN 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#2110337

Tell us what you are trying to do?

I plan to build some tools for the editorial team using Toolset on a site with half a million monthly visitors.

Passing Core Web Vitals is very important and I already do but I need to make sure Toolset won't load anything extra for the front-end users as there won't be any action they could do.

Is this possible? If so is this standard or I have to set some things to make sure this doesn't happen?

Thank you.

#2110847

Hello and thank you for contacting Toolset support.

Yes, Toolset views/blocks and forms will load some styles and scripts to the frontend. The latest release of Views/Blocks has implemented an optimization technique that lazy loads the scripts and styles using Javascript. This behavior can be disabled using a constant in wp-config.php file. Check it on this previous ticket https://toolset.com/forums/topic/enqueue-wordpress-child-theme-css-files-after-toolset-blocks-style-css/
That way, you can dequeue Toolset files when they are not needed.

#2110851

My issue is resolved now. Thank you!