Prevent admin scripts from loading on frontend
-
Hi Support
Thanks for the plugin, it makes life much simpler than having to write this code manually.
At the moment I am running a little bit of PHP in the theme to dequeue the admin javascript (nolg-backend) and css (nolg-admin) which is quite heavy and not needed on the fronted.
If you could update your plugin to wrap the wp_enqueue_script and wp_enqueue_style in an is_admin() or https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/ or similar, that would be great.
Josh
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Prevent admin scripts from loading on frontend’ is closed to new replies.