Support » Plugin: WooCommerce PayPal Checkout Payment Gateway » Pure JavaScript loaded on every page

  • Resolved chevallier

    (@chevallier)


    Dear Supporters,

    the problem is that the plugin loads pure JavaScript into the footer using the “wc_enqueue_js” function in “woocommerce-gateway-paypal-express-checkout/includes/settings/settings-ppec.php” on line 53. That makes it impossible to remove the JavaScript for me via handlers and display it only on certain pages, without editing the plugin PHP files.

    I would like to remove that JavaScript from pages other than the shop. So, how could I remove that JS, which is displayed on each on every page and control where it is outputed?

    Best regards,
    Chevallier

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chevallier

    (@chevallier)

    Hi there,

    very strange, as per 1.6.5 this problem should be fixed, but unfortunately after updating to 1.6.5 the problem still persists (still have JavaScript in my footer area on every single page).

    Best regards,
    Chevallier

    • This reply was modified 3 years, 2 months ago by chevallier.
    Plugin Contributor Hannah S.L. a11n

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Thanks for the clear description of the problem!

    I’ve been checking through the issues on the plugin’s repo, but I can’t find one that seems to exactly match what you’re looking for. Can you let me know which fix you were expecting in 1.6.5?

    Issues:
    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pure JavaScript loaded on every page’ is closed to new replies.