I have a strange JQuery issue that I am looking for help with.
I have a page that has the below piece of javascript. When the page loads the first time it works as it should. However if the user moves away but then comes back to the page, the load isn’t called, instead it happens about 30 seconds later.
If I have the alert uncommented it all works fine (apart from the popup appearing). This is happening in Firefox only. All other browsers are fine. This is in a MVC3 application. There is no caching on the MVC action either. Could it be a cache issue somewhere else?
navigator.geolocation.getCurrentPosition(function (position) {
$(function () {
//alert('1');
$('#divNearestTiles').load....
Thanks for your help. I have it working now. The load has a success function. It turned out to be some jquery in there that was upsetting things.