I'm currently using phonegap for my iOS application project.
Interestingly, I've noticed a slight white flicker/flash when navigating between pages in the app.
To address this issue, I have refrained from using jquery mobile and instead relied solely on some custom javascripts and iScroll4 plugin. Is there any effective solution to eliminate this unwanted flickering?
UPDATED
Here's a snippet of the code that might be relevant to this situation.
Index CSS:
body {
-webkit-user-select: none;
-webkit-touch-callout: none;
background-color: #f7f6ec;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#fixedcontent {
position:absolute; z-index:1;
top:64px; bottom:49px; left:0;
width:100%;
overflow:auto;
}
Index.html
<html>
<head>
<script type="text/javascript" src="cordova.js"></script>
<link rel="stylesheet" type="text/css" href="css/index.css" />
<!-- fixed header -->
<script src="js/iscroll-lite.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
setTimeout(function () {
myScroll = new iScroll('fixedcontent');
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
document.addEventListener('DOMContentLoaded', loaded, false);
function onCompletion () {
// Here modify the DOM in any way, eg: by adding LIs to the scroller UL
setTimeout(function () {
myScroll.refresh();
}, 0);
};
</script>
</head>
<body>
<div id="wrappercontentfixed"> hi test
<a href="about.html"> about page </a>
<a href="merchandise.html"> merchandise page</a>
</div>
</body>
</html>