Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worked around iOS mobile Safari browser bug which leaks memory… #365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ateamlunchbox
Copy link

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

…memory if <img> tags are removed from the DOM without having their 'src' attribute first set to ''.
@bwaack
Copy link

bwaack commented Sep 2, 2016

hm, my bigger galleries are still crashing on IOS. Older Versions of Gallery can serve bigger galleries.
Does this still work?
which themes, which options and which versions do you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants