Conditional loading of js/css assets?
-
Hey,
I’ve installed this on my site and its working well, however I saw it’s adding assets to all pages, like my shop page for woocommerce for instance which makes no use of the faqs.
I see this:
/wp-content/plugins/ultimate-faqs/assets/css/rrssb-min.css?ver=5.7.2
and
/wp-content/plugins/ultimate-faqs/assets/css/jquery-ui.min.css?ver=5.7.2Loading there. I remember reading through the changelog and in April this year there was some change relating to conditionally loading assets which I assumed would take care of this.
Is there anyway to conditionally dequeu the hooks for the js/css of this plugin and only load it on my /contact/ page which is where I’m using the Blocks of this plugin? Woocommerce already bloats my site enough.
Thank you
Matt
- The topic ‘Conditional loading of js/css assets?’ is closed to new replies.