cubiq/iscroll — Issue #168: Content flickers on iPhone when images load
Author: mikez302
Created: 2012-01-07 00:18:46+00:00
State: open

I have a div that I am using iScroll 4.1.9 on. When I add some images to the div, everything inside it flickers on the iPhone. I found that if I add width and height attributes to the images, the flickering doesn't happen, but that is not always a practical option. I haven't figured out what exactly within iScroll is triggering the bug. I am using an iPhone 4 with iOS 4.2.1. This is the code that I am using:

```html

iScroll flicker bug

Test

```

The random numbers in the image URLs are to disable the phone's caching and slow down the loading so the behavior is more noticeable. You can also access it at http://jsfiddle.net/X7xdf/1/.