Support » Plugin: Direct Checkout - Quick View - Buy Now For WooCommerce » Load plugin resources (js/css) only on used pages

  • Resolved hoakinn25

    (@hoakinn25)


    Hello.
    I have thousands of pages on my site and only 2 pages with products. But plugin scripts and style files are loaded on all pages.
    If there are any ways to make the plugin load only on pages with woocommerce?

Viewing 1 replies (of 1 total)
  • Plugin Author GrandPlugins

    (@grandplugins)

    The assets will be loaded by default on all pages. because products could be placed at any page by any theme. possibilities are endless to be controlled from the plugin side.

    You can check any assets control plugin to enqueue-dequeue scripts per pages.

    maybe this plugin would be a good option https://wordpress.org/plugins/wp-asset-clean-up/

    Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘Load plugin resources (js/css) only on used pages’ is closed to new replies.