I had this problem, I wanted to add adsense advertisments to one of my mobile sites, but you can’t see the ads if the page loads with ajax.

So I needed to disable it. The first solution was this:

<script language="javascript">
 
    $.mobile.ajaxLinksEnabled = false;
 
</script>

But after updating jquery to the newest version, that didn’t work anymore.

I found in some forum that in order to do that you have to change the script a little bit:

<script language="javascript">
 
    $.mobile.ajaxEnabled = false;
 
</script>

The only difference is that we remove the Links in ajaxLinksEnabled.

That’s it. Thanks for visiting.