Worked around iOS mobile Safari browser bug which leaks memory… #365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
if tags are removed from the DOM without having their 'src' attribute first set to ''.
I love the library and used it to build a personal photo gallery with > 600 images in native iPad format (2048x1536). It would cycle through around 115 images and then Safari would crash. I did some digging and found a known issue with a solution (see comments in my patch).
The patched code seems to be working fine: I have been running my single-page photo web app for hours and it has been cycling through the images without crashing.
Just thought you might be interested in the fix.
Cheers,
-Dane