Free up memory in MobileSafari (iPhone/iPad) from cached images
The iPad stops loading large images after about 8 or 9 images for me, since the page runs into its allocated memory开发者_如何学Go limits.
Since I'm showing these images one at a time, I'd like to remove the old ones from the browser cache so I don't hit the limit.
Any ideas on how to do this in javascript?
See this question for a good answer. In a nutshell, you should use the same image objects and set the src instead of creating new images.
精彩评论