Title: Javascript / jQuery not being run after post load
Last modified: May 29, 2018

---

# Javascript / jQuery not being run after post load

 *  Resolved [janvitos](https://wordpress.org/support/users/janvitos/)
 * (@janvitos)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/javascript-jquery-not-being-run-after-post-load/)
 * Hi,
 * Thanks for your plugin. It works really well and you did an awesome job with 
   it.
 * I do have a small issue where all jQuery $(document).ready and $(window).load
   functions are not being executed after a new post is loaded. I’m assuming this
   is somewhat normal since your plugin does not know about these functions. For
   instance, I’m using the FitVids jQuery plugin to make videos responsive, and 
   it’s working on the initial post load, but not on the subsequent post loads.
 * Do you know if there’s a way to load those functions after a post is loaded?
 * Thank you.

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

 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/javascript-jquery-not-being-run-after-post-load/#post-10337903)
 * Hi [@janvitos](https://wordpress.org/support/users/janvitos/)
 * Thank you. I’m glad that you like it.
 * I don’t think there is an issue with jQuery loading. Your FitVids are just not
   being triggered for the other posts once they have loaded.
 * There are [javascript triggers](https://autoloadnextpost.com/documentation/javascript-triggers/)
   available that you can use for what you are trying to do.
 * I suggest looking at the plugin documentation for more information.
 * Let me know if you need any further assistance.
 * regards,
 * Sébastien Dumont.
 *  Thread Starter [janvitos](https://wordpress.org/support/users/janvitos/)
 * (@janvitos)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/javascript-jquery-not-being-run-after-post-load/#post-10337950)
 * Awesome ! I will be reading about those.
 * Thank you.

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

The topic ‘Javascript / jQuery not being run after post load’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-load-next-post_ccaf26.svg)
 * [WordPress Infinite Scroll by Auto Load Next Post](https://wordpress.org/plugins/auto-load-next-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-load-next-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-load-next-post/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-load-next-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-load-next-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-load-next-post/reviews/)

## Tags

 * [fitvids](https://wordpress.org/support/topic-tag/fitvids/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [triggers](https://wordpress.org/support/topic-tag/triggers/)

 * 2 replies
 * 2 participants
 * Last reply from: [janvitos](https://wordpress.org/support/users/janvitos/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/javascript-jquery-not-being-run-after-post-load/#post-10337950)
 * Status: resolved