JS running on all front-end pages..??

Issue #89 closed
Drew Angell repo owner created an issue

I have “Paypal IPN” working in one site, but i see that the plugin loads this JS file: /paypal-ipn/public/js/paypal-ipn-for-wordpress-public-bn.js?ver=1.1.0

In ALL pages of frontend of my web.

I think could be better just load the script in the pages who need it, not at all of them.

Comments (6)

  1. Tejas Mehta

    @angelleye This is not possible to do because To check weather PayPal button is on page or not you must add js that checks for the button on every page.

    And the same code is in public-bn.js.

  2. Drew Angell reporter

    @tejasm_itpath So this is from the code we have that is searching for buttons and injecting our partner code?

  3. Log in to comment