JQuery Mobile – Disable AJAX navigation for all links at once

As awesome as AJAX navigation is, there are times where you’d just rather disable it.
Use this bit of jQuery to tell the mobile library not to use AJAX navigation.

Place it after the reference to the jQuery mobile library in the header of the page. In other words, the library must already be loaded before this code is referenced.

 $(document).ready(function() {
  // disable ajax nav
  $.mobile.ajaxLinksEnabled = false;

Leave a Reply

Your email address will not be published. Required fields are marked *