Scripts and Stylesheets loading when plugin not in use
-
It would be nice if this plugin would only load its scripts and styles on pages where it is being used. I was able to do this for my site by removing the call to “add_public_scripts” from class-ps-ajax.php and adding it to class-ps-public.php and calling that function from within “render_shortcode”. I don’t know if this will cover all use cases, but works for me. Thought I’d suggest it and see if it’s a feature that could be added.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Scripts and Stylesheets loading when plugin not in use’ is closed to new replies.