Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Google's Async adsense code loads fine even the page is loaded via ajax.

I made no changes to load the ads differently. Just added https://github.com/browserstate/ajaxify on my site to make the content loading ajaxified.

My adsense loads fine also. Does it violate any TOS.

share|improve this question

It is against the Google AdSense policy to reload or refresh the ads when the user has not left the page. If you ads are on a portion of the page that does not change when the user navigates with AJAX, you should be fine.

Google AdSense is not very compatible with AJAX. They started a program to test AdSense with AJAX sites but have since shut it down. The Google product help forums are full of complaints about Google Adsense not supporting AJAX.

Here is a decent post on StackOverflow about the issue: Refresh a Div that has a Google ad inside it

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.