Title: Load js script only when need it
Last modified: March 2, 2017

---

# Load js script only when need it

 *  [spacebom](https://wordpress.org/support/users/spacebom/)
 * (@spacebom)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/load-js-script-only-when-need-it/)
 * 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.
 * What do you think? That is possible?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/load-js-script-only-when-need-it/#post-8865532)
 * Hmmm…not sure how we’d have missed that. We’ll certainly look into this and make
   any necessary adjustments in the next update. Thanks for the feedback!

Viewing 1 replies (of 1 total)

The topic ‘Load js script only when need it’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-ipn_b2a7a0.svg)
 * [PayPal IPN for WordPress](https://wordpress.org/plugins/paypal-ipn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-ipn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-ipn/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-ipn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-ipn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-ipn/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/load-js-script-only-when-need-it/#post-8865532)
 * Status: not a support question