From b8d5247a779547a47e628b30901a9da3fd19d546 Mon Sep 17 00:00:00 2001 From: Peter Ehrlich Date: Thu, 15 Dec 2011 19:32:17 -0500 Subject: [PATCH] don't prefetch on data-prefetch=false --- js/jquery.mobile.navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 9d070bdb54e..4315e70fb78 100755 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1398,8 +1398,8 @@ //prefetch pages when anchors with data-prefetch are encountered $( document ).delegate( ".ui-page", "pageshow.prefetch", function() { - var urls = []; - $( this ).find( "a:jqmData(prefetch)" ).each(function(){ + var urls = []; + $( this ).find( "a:jqmData(prefetch):not(:jqmData(prefetch=false))" ).each(function(){ var $link = $(this), url = $link.attr( "href" );