My index.html
simply holds a lot of page holders:
<body>
<div data-role="page" id="homePage"></div>
<div data-role="page" id="registrationPage"></div>
<div data-role="page" id="walletPage"></div>
.. and a lot of page holders
</body>
My Javascript is loading all the pages at run time:
var resources = [{
id: "#homePage",
url: "pages/homePage.html"
},
{
id: "#walletPage",
url: "pages/walletPage.html"
}] ...
$(document).ready(function() {
$.mobile.defaultPageTransition = "slide";
loadResource()
})
Everything is wrapped inside Phonegap to deliver a native app. Now the problem is all my dynamic pages first-time sliding animation is screwed up on iPhone. From the second time onwards, everything works as expected. It seems to me like some sort of browser caching problem.
Any suggestion how I can resolve or debug it?