开发者

Free up memory in MobileSafari (iPhone/iPad) from cached images

开发者 https://www.devze.com 2022-12-26 05:20 出处:网络
The iPad stops loading large images after about 8 or 9 images for me, since the page runs into its allocated memory开发者_如何学Go limits.

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

精彩评论

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