kylefox / jquery-modal

The simplest possible modal for jQuery

Home Page:http://jquerymodal.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

browser crash due to memory usage on modal

opened this issue · comments

I am running into an issue while using jQuery Modal (https://jquerymodal.com)
Within my modal window, I have some hrefs linking to next and previous images.
There hrefs also call the modal function to open them in the same modal screen.
According to documentation, only 1 modal can be opened and the previous one is automatically closed; though memory usage increases on each click, resulting in 2 to 3 GB of memory use after a dozen clicks with a browser crash as a result (170MB to 250MB per click for a 1MB loaded page).

Anyone any idea?
http://beeldbank.tenboome.be search some word like "park" for example, click any image and use the arrows to go to the next images.