开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜