Move this topic
Page flickers on slide transition on iPad
in jQuery Mobile
•
7 months ago
I have a web app built with jQuery Mobile that works fine when using it in Safari on an iPad. However, when you add it to the home screen to use it as a standalone app (with the browser navigation removed by using <meta name="apple-mobile-web-app-capable" content="yes"/> , then the page transitions "blink" quickly after each page transition. It only happens for slide transitions, not flip or pop e.g.
I have Googled on this and found that blinking was considered a bug a long time ago, and by now should be fixed. And it seems to be in Safari, but not as standalone from home screen. Does anyone know what is causing this and how to fix it?
Does it have anything to do with the fact that the navigation bar is not there? It works fine as standalone on iPhone though, it's only on the iPad that it occurs...
1
Replies(13)
Re: Page flickers on slide transition on iPad
7 months ago
The question seems to have received a fair amount of views, but no answer... Is this not the right forum for jQuery Mobile questions? Really no one has any idea why this occurs and what to do about it? Even finding out that it is a known bug (not one of the old bugs that have already been solved with flickering even in the web browser mode) would be better than nothing... I can't be the only one who has experienced this? I even tried it with a test page from the jQuery Mobile docs (Multi-page) that's how easy it is to reproduce - just remove the navigation bar using <meta name="apple-mobile-web-app-capable" content="yes"/> and view it on an iPad, and the pages start blinking on each slide transition.
Leave a comment on anders.svensson's reply
Re: Page flickers on slide transition on iPad
6 months ago
I am having this exact same issue...
No solution has been found to this point.
Leave a comment on patrick.schillemat's reply
Re: Page flickers on slide transition on iPad
6 months ago
This has been a problem for a long time (page transitions). From what I can gather it has more to do with the browsers then JQM. I have read in many of places that is best to just turn off page transitions and just use the loading dialog until such time as the transitions issue is resolved.
Leave a comment on webdpro's reply
Re: Page flickers on slide transition on iPad
6 months ago
Also this only happens in the iPad (iOS 5.0.1)... Works perfect on iPhone 4 (iOS 5.0.1)
Landscape or portrait seem to have no change on it.
Leave a comment on patrick.schillemat's reply
Re: Page flickers on slide transition on iPad
6 months ago
@Patrick Indeed, having the same issues too and I can confirm that this only occurs on the iPad running 5.0.1. Also tested it on iPhone 5.0.1 (4, 3GS) and in the iOS simulator.
Leave a comment on piejero's reply
Leave a comment on barryvdh's reply
Re: Page flickers on slide transition on iPad
5 months ago
I get less of a flicker of white space between page transitions when I use data-transition="none" in the a href tags. I read on this forum earlier today that this is an issue they are addressing and they hope to settle it in the next revision.
Re: Page flickers on slide transition on iPad
5 months ago
Yes, it has been a known issue for a while and has more to do with the mobile browser support then JQM.
Leave a comment on stevenhus's reply
Re: Page flickers on slide transition on iPad
5 months ago
I also posted this here: http://stackoverflow.com/questions/7860478/jquery-mobile-blinking-at-page-transitions-on-ipad
This only partially works for me:
<style> body .ui-page { height: 100% !important; -webkit-backface-visibility: hidden; } input { outline: none; } </style> $(document).bind("mobileinit", function () { $.mobile.defaultPageTransition = "none"; });
Which prevent's flickering and whitespace at the bottom of the page but notice that transitions are turned off.
Also, id's are not being used more than once which I can verify with:
// an id used more than once?? var ids = new Array(); $.each($("[id]"), function () {ids.push($(this).attr("id"));}); var matches, val1; for (var i = 0; i < ids.length; i++) { matches = 0; val1 = new RegExp(ids[i], "i"); for (var i2 = 0; i2 < ids.length; i2++) { if (ids[i].length == ids[i2].length && val1.test(ids[i2]) == true) matches++; } if (matches > 1) alert("This id was used more than once: " + ids[i]); }
Have also tried:
$.extend($.mobile, { metaViewportContent: "width=device-width, height=device-height, minimum-scale=1, maximum-scale=1" });
And loading the page into the DOM and only once that is complete doing the transition as so:
var promise = $.mobile.loadPage(url, { pageContainer : $("body") }); promise.done(function () { var newPage = $("body [data-role='page']:last").attr("id"); $.mobile.changePage($("#" + newPage)); });
I'm still getting the flickering on page transitions.
Leave a comment on seanmchugh.info's reply
Re: Page flickers on slide transition on iPad
3 months ago
I too have had this issue since the Alpha versions of JQM.
I can confirm that I'm still getting flickering with page transitions i.e. Flip and Slide with JQM 1.0.1 and IOS 5.0.1 on iPad after building a standalone app using Dreamweaver+JQM+Phonegap.
I have noticed that I'm only getting the flickering when I transition to my pages in the app that has a gallery of images from the Photoswipe plugin. However, when I transition back to the home page that only has a list view, the home page doesn't flicker.
It is possible that the CSS for Photoswipe needs to be tightened up a bit, but it could be the rendering from Mobile Safari as well.
Point being, that it may not be jQuery Mobile that is causing the flickering.
Leave a comment on lumierephoto's reply
Re: Page flickers on slide transition on iPad
1 month ago
I also get the flash on my iPad running iOS 5.1 with the slide transition. I'm thinking of just forcing the transition to "none" like I do with Android 2.3.3.
doug
Leave a comment on douglerner's reply
Re: Page flickers on slide transition on iPad
1 month ago
I notice this flicker only occurs with
<meta name="apple-mobile-web-app-capable" content="yes" />
If I run it just as a mobile Safari web site (suitable in my case at least) by doing
<meta name="apple-mobile-web-app-capable" content="no" />
there is no flicker during slide transitions.
This is using JQM v1.1 under iOS 5.1 on the iPad.
doug
Leave a comment on douglerner's reply
Re: Page flickers on slide transition on iPad
1 month ago
This worked for me. I see above someone has something similar, but I don't see the same issue.
It might be worth mentioning that on one App where I have collapsable divs, I had to put the following on the h4 titles.
---
http://zsprawl.com
- .ui-page {
- -webkit-backface-visibility: hidden;
- height: 100%;
- }
It might be worth mentioning that on one App where I have collapsable divs, I had to put the following on the h4 titles.
- #snapit h4, #titleit h4, #captionit h4 {
- -webkit-perspective: 1000;
- }
---
http://zsprawl.com
Leave a comment on zSprawl's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic
Reply to anders.svensson's question
{"z7797029":[14737000002898059],"z8036254":[14737000002886850],"z6187205":[14737000002815335,14737000002820711],"z8744100":[14737000003280203],"z8017263":[14737000002880311,14737000002880398],"z7968082":[14737000002882461],"z5775247":[14737000002891428],"z3431786":[14737000003055276],"z8261903":[14737000003281283,14737000003279315],"z3036497":[14737000002880343,14737000002895431]}
Statistics
- 13 Replies
- 1417 Views
- 2 Followers



