Title: Javascript not loading
Last modified: July 28, 2019

---

# Javascript not loading

 *  Resolved [octavoscott](https://wordpress.org/support/users/octavoscott/)
 * (@octavoscott)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-not-loading-7/)
 * I have a javascript on one of the pages that I am pulling into a popup using 
   this plugin. I’m have this on the page. [https://www.jacklmoore.com/zoom/](https://www.jacklmoore.com/zoom/).
   A script to zoom in an image. It works fine on the actual page, but using your
   plugin, to pull that page into a popup stops the script from working. Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-not-loading-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [octavoscott](https://wordpress.org/support/users/octavoscott/)
 * (@octavoscott)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-not-loading-7/#post-11779970)
 * I changed the script that I’m using. It seems that I can’t get any javascript
   to work when it’s on a page that is filtered through the insert page plugin. 
   I’m trying to add a simple on click event to change the css of a div and it works
   on the site elsewhere, but not when used via insert pages. I am pulling pages
   into a popup with this plugin, fyi.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/javascript-not-loading-7/#post-11854350)
 * Do you conditionally enqueue the javascript based on what page you’re viewing?
   If so, it may not be loading for the page in the popup, because the context is
   the parent page.
 * Alternatively, does your script use specific selectors that target an element
   in the DOM that’s in a different place when the page is loaded in a popup?
 * Those are the only two things I can think of.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-loading-7/#post-12040489)
 * Closing due to inactivity. Please let us know if you have further input.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript not loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/insert-pages.svg)
 * [Insert Pages](https://wordpress.org/plugins/insert-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-pages/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-loading-7/#post-12040489)
 * Status: resolved