Skip Navigation

[Resolved] Only loading toolset and it’s resources on pages that are using toolset

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

Problem:
Only loading toolset and it's resources on pages that are using toolset

Solution:
You can use WordPress standard hook wp_print_scripts and wp_print_styles to dequeue the javascript and css files loaded on frontend.

You can find proposed solution with the following reply:
=> https://toolset.com/forums/topic/restricting-toolset-scripts-to-specific-pages-or-sections/#post-625584

Relevant Documentation:

This support ticket is created 6 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#632106

Hello,

I'm using toolset views on a couple pages on our site, but I don't want to use toolset (views/layouts) on EVERY page. Right now, the pages are NOT using toolset are still receiving all the toolset css, javascript, google maps resources.

Is there a way to only load these toolset resources on pages that are actually using toolset? How can I best manage this?

Thanks!!

#632209

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - what if you try the following approach I suggested with the following ticket:
=> https://toolset.com/forums/topic/restricting-toolset-scripts-to-specific-pages-or-sections/#post-625584