Title: Javascript not working
Last modified: November 15, 2016

---

# Javascript not working

 *  Resolved [webujitas](https://wordpress.org/support/users/webujitas/)
 * (@webujitas)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-19/)
 * Hello, the plugin working, but after loading 2nd page, javascript not working,
   it kills Google Adsense and the AddToAny plugin. I tried a plain alert script,
   it runs for the first 5 post, but not on the second (and more) page…
    [http://dtingpoint.com](http://dtingpoint.com)
 * Please help! Thank you!

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

 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8538006)
 * Hi, Just following up on this, apologies for the delay I assume you’ve disabled
   the plugin now? If I can help let me know but I’d suggest you’ll need to initialise
   any Google Adsense on the other pages by using the plugins callback in the settings.
 *  Thread Starter [webujitas](https://wordpress.org/support/users/webujitas/)
 * (@webujitas)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542412)
 * Hi, I tried, but it does not work. I switched back the plugin, can you check 
   it?
    Thank you!
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542476)
 * You are loading the .js file again in tghe callback this doesn’t initialise the
   adverts. Looking at your code this is the line that does so you could try that.
 * `(adsbygoogle = window.adsbygoogle || []).push({});`
 * You don’t need the script tags in the callback either.
 * The plugin is working as it loads more posts but unfortunately I can’t provide
   much more support as this is related to a 3rd party API.
 * Thanks
 *  Thread Starter [webujitas](https://wordpress.org/support/users/webujitas/)
 * (@webujitas)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542504)
 * Thank You so much, it works!
 *  Plugin Author [craigramsay](https://wordpress.org/support/users/malinkymedia/)
 * (@malinkymedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542517)
 * Excellent glad it’s working for you! Thanks
 *  Thread Starter [webujitas](https://wordpress.org/support/users/webujitas/)
 * (@webujitas)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542596)
 * I found the solution for Add2Any too, maybe helping others:
 * `jQuery( 'body' ).trigger( 'post-load' );`
 * to the plugins callback in the settings too.
 * Thanks again!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/malinky-ajax-pagination_e2c6ba.svg)
 * [Ajax Pagination and Infinite Scroll](https://wordpress.org/plugins/malinky-ajax-pagination/)
 * [Support Threads](https://wordpress.org/support/plugin/malinky-ajax-pagination/)
 * [Active Topics](https://wordpress.org/support/plugin/malinky-ajax-pagination/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/malinky-ajax-pagination/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/malinky-ajax-pagination/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 6 replies
 * 2 participants
 * Last reply from: [webujitas](https://wordpress.org/support/users/webujitas/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-19/#post-8542596)
 * Status: resolved