All Scripts Stop Working After Navigating on Mobile -


i'm working on mobile version of website, desktop version working perfectly. on mobile, after first navigation (random internal page), jquery scripts stop working. when navigate index, doesn't execute working scripts.

i have included html parts, example:

$(".header").load("header.html"); 

and lots of different in-page scripts or slideshows, toggle buttons.

i'm aware of dom loading issue, tried solution, none of them fixed bug.

so how can fix without creating different mobile version of website?

try instead of load().

$(document).ready(function(){     $.ajax( {     url: "header.html",     type: "get",     cache: false,     success: function(html) {         $(".header").html(html);       }     }); }); 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -