0

So I am making a Web based app. I have all of the code down, but it flashes whenever it switches pages. I thought, how about I make all of my pages internal? Here is some basic code I make of how I think you do Internal Pages, and it won't work. What is wrong?

http://pastebin.com/kSCyKKgx

EDIT: This is for an Android App!

david
  • 2,529
  • 1
  • 34
  • 50

2 Answers2

3

The "flash" you see is the browser clearing up the rendering before loading and rendering the new page. This is normal.

If you want to avoid these, you need to invest time into learning how to use AJAX effectively - this essentially is you getting data from the server in JavaScript and rendering in client side, so the browser doesn't ever load a new page (avoid the "flash").

There is lots to thing about though when implementing the above (things like browser history, making pages linkable and more).

Oded
  • 489,969
  • 99
  • 883
  • 1,009
0

That "FLICKERING" you are seeing, could be that you are on a Android 2.x device, maybe?

If so, you can try adding this to any CSS that loads after the main jquery mobile ones in your HEAD section.

<style type="text/css">
.ui-page {
    -webkit-backface-visibility: hidden;
}
</style>
Red2678
  • 3,177
  • 2
  • 29
  • 43