3

The iPad stops loading large images after about 8 or 9 images for me, since the page runs into its allocated memory 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?

3n.
  • 1,671
  • 2
  • 17
  • 15

1 Answers1

5

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.

Community
  • 1
  • 1
drawnonward
  • 53,459
  • 16
  • 107
  • 112