Title: Javascript not getting loaded
Last modified: August 30, 2016

---

# Javascript not getting loaded

 *  Resolved [ben_del](https://wordpress.org/support/users/ben_del/)
 * (@ben_del)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/)
 * Hello,
 * I’m using Ajax Load More, and so far am using default settings. I’m not seeing
   anything work.
 * I DO see the #ajax-load-more div in the DOM, but I do not see the script getting
   loaded into the footer. I do have wp_footer() getting called.
 * **Can you help me determine why the script is not being loaded into the footer?**
 * I can give you a public link, but it is currently password protected as the site
   is under development for a client. If you send me your email, I can give you 
   the temporary username and password though.
 * Thank you.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Thread Starter [ben_del](https://wordpress.org/support/users/ben_del/)
 * (@ben_del)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/#post-6481056)
 * I did some more tinkering and found that I was causing the problem by updating
   to the latest jQuery. Here is the code that was causing the ALM script to not
   load (seems strange that this would cause that). ??
 *     ```
       if( !is_admin()){
           wp_deregister_script('jquery');
           wp_register_script('jquery2', get_template_directory_uri() . '/js/vendor/jquery.js', array(), '2.1.4', true);
           wp_enqueue_script('jquery2');
       }
       ```
   
 * Is there a way to continue to use ALM and still use the code above?
 * Thanks.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/#post-6481149)
 * Hey Ben,
    I just tested with 2.1.4 and the site worked as expected. If you want
   to share a link you can use the contact form on my website. [https://connekthq.com/contact/](https://connekthq.com/contact/)
   Cheers,
 *  Thread Starter [ben_del](https://wordpress.org/support/users/ben_del/)
 * (@ben_del)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/#post-6481266)
 * Thanks for the info. I had to do some more digging and found that another plugin
   was forcing jQuery to be loaded in an order that was causing ALM to not have 
   it available yet on page load. Sorted it out!
 * Great plugin by the way. Works really well. Was happy to pay for the bundle. 
   🙂
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/#post-6481332)
 * Cheers! Thanks man!

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

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

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-getting-loaded/#post-6481332)
 * Status: resolved