Flickering when navigating between pages

后端 未结 12 1759
日久生厌
日久生厌 2020-11-28 21:32

My phonegap/jquery mobile application flickers most of the time when I navigate between the pages. Is this normal or is there a solution for this?

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 22:04

    I had the same problem and it was caused by duplicate ids across different pages in my HTML.

    Even though the duplicate ids were in different html pages, JQuery Mobile compiles all your HTML files into one single HTML document, so that it can perform the page transitions.

    This was resulting in invalid HTML and causing the blinking similar to what you describe.

    Once I corrected the duplicate ids issue, all worked beautifully.

    UPDATE: Stack Overflow Answer here explaining more about the duplicate ids issue in Jquery Mobile https://stackoverflow.com/a/8608474/271125

提交回复
热议问题