Description

However, it looks as though iPad's Safari does NOT deallocate memory for images that are removed from the DOM. An answer in the StackOverflow link above mentions that assigning a dataURI with an encoded 1x1 px gif as the "src" of the image should help safari deallocate the memory used for that image element.

Change History (3)

I've tested and confirmed that this is an issue with Mobile Safari itself and not actually a problem due to jQuery (or specifically $('img').remove()).

Mobile Safari generally has issues with JavaScript memory allocation which are down to the limits and actual implementation Apple have applied to that version of their browser.

If you read through the StackOverflow thread you will see that there are a few different solutions presented there that successfully allow you to workaround the JS memory allocation issue without any trouble.