dimsemenov/Magnific-Popup — pull request #148 by osmestad (2013-07-10 13:23:05+00:00)
Title: A way to be notified of lazy loading failures

Nice lightbox script!

I have a gallery of unknown length so I'm adding images dynamically as the user clicks through it (the URLs are like this: '/image?index=1').

To know when there are no more images I would like to use the lazy loading to preload the next few images and when reaching the end (which gives me a 404 error) remove that item (and any following) from the items array.

Is there currently any way of handling this?
If not I suggest adding the following 'LazyLoadError' event.

Cheers
Øyvind