My website uses one image to load a gallery. In the old version of Fancybox, you used a .js-file to load the images and that worked fine. With the new one, I have to hide the images and every single image is loaded when the user visits my website.
How do I prevent that? The users should only load the images from the gallery they are visiting.
You can have a look at my website here: http://www.mogm.nl/2011.html
You don’t have to load all the images on the hidden
div(there is not use for that), only the anchor, so this:can be reduced to this:
that will reduce significantly the load page.
On the other hand, you can always use
ajaxto load the content of each gallery dynamically but you have to set the link reference to the images in any case either inside of a hiddendivor an external file. Let me know if you prefer the second option and I will post a script I already have for that.