If possible for a specific use case, consider using the pagechange event instead of pagebeforecreate . You can prevent the ajax request in the first place, rather than using the abort() ajax request method. The code will look like this:
$(document).bind("pagebeforechange", function(e, data) {
source share