Saturday, January 07, 2012

javascript - iPhone is not playing animation sprites properly ? - Stack Overflow

javascript - iPhone is not playing animation sprites properly ? - Stack Overflow: "
0
down vote
accepted
So this was a tricky situation to overcome but here are our exact workings. We found that it wasn't performance related issues with the iphone due to the number of sprites, what was happening was the browser was crashing due to loading and animating the images at the same time.

So to stop this from happening we had to preload our images using a plugin for jQuery which evidently didn't work very well.

In the end we wrote a custom function to write the images to the DOM and then to attach that to a div via the jQuery .css() function."

'via Blog this'