• 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.2

    Loading 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

    • This topic was modified 3 years, 5 months ago by Soprano.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi Matt,

    Are those the only two assets? i.e. Are the main assets for the plugin (like ewd-ufaq.css and ewd-ufaq.js) also enqueued on those other pages? I ask because the assets you mentioned are third-party libraries/plugins that we make use of, and it could be that, in the rebuild version, we accidentally did not add the conditions to those assets. This is something I’ll make sure we verify and update if necessary. However, if it’s for all the assets, that might point to a different problem, as the main ones should definitely only be enqueued conditionally.

    Thread Starter Soprano

    (@soprano)

    Yep it’s just those two assets so far that I’ve noticed. I’m happy to hear it’s something that can be fixed in the future updates cause I’m really enjoying the plugin. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional loading of js/css assets?’ is closed to new replies.