Question

I am using iScroll in a web app built on jQuery Mobile, and using iScroll for scrolling. One feature loads an rss feed item into a page, and then changes to that page. iScroll works quite well, except for one thing:

iScroll uses the height of the page when it initiates, however, this is before any images in the content are loaded. Once the images load, the height of the page changes, and then I get the 'bounce-back' effect from iScroll.

How do I determine when the images are loaded? or alternatively, has anyone else experienced this problem and maybe used a workaround?

Was it helpful?

Solution

This plugin will allow you to detect when your images have loaded.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top