Support » Plugin: WPC Custom Related Products for WooCommerce » Script Loads on All Pages, Even if no product is present

  • Resolved usat009


    GTMetrix shows that scripts for this plugin are running on pages that don’t even have products.

    Do you have a code snippet I can add to my functions.php file that will only allow the scripts for this plugin to run on product and woocommerce based pages like checkout?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPCodelibrary


    hi @usat009 ,

    Thanks for sharing your concerns here.

    We have loaded it globally to avoid unwanted not defined or not found issue. when having multiple plugin or theme overrides page template or page name. Let us know if it causes any issue to your site.


    I’ve been deactivating all plugins from running on pages that they aren’t required for page functionality to speed up all pages that can be sped up.

    I’d like to have this only run on woocommerce affiliated pages. There should be a way to achieve that with a functions.php snippet.

    Plugin Author WPCodelibrary


    Hi @usat009 I have responded in your pro support email. can you please check for the same and let me know if any further queries for the same.


Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.