I hope that is self explanatory.
I'm using the jqm loading message between page transitions. The transitions work like this:
click -> beforepagechance $.mobile.showPageLoadingMsg(); -> ajax to get content -> do a little work on the returned content/add to DOM -> allow jqm to enchance content -> $.mobile.changePage(); -> pagechange/$.mobile.HidePageLoadingMsg();
This works good enough. When you add an alert, say for debugging or window.onunload, at the end of this process it freezes safari and crashes an ipad2 and an android tablet.
setTimeout(){f,0} works in some situations but not all.
My question is really actually simple. Does anyone know why $.mobile.showPageLoadingMsg() in conjunction with an alert/choose and a page transition causes the browser to freeze or crash and is there any way to get around this?