I am using lightbox2 plugin. I have two images: ori-img.jpg is around 10MB while my thumb-img.jpg is only 200KB. When user click on the thumb-img.jpg, a modal with the ori-img.jpg will be displayed. I want to know if:
- The ori-img.jpg (10MB) being loaded when the page loaded? Meaning all original images will be loaded before user even open it?
- How to prevent user consume unnecessary additional internet data to load un-open image (original)?
Partial sample code below in gallery.php
<a class="example-image-link" href="images/ori-img.jpg" data-lightbox="example-set" data-title="Original Image">
<img class="example-image" src="images/thumb-img.jpg" alt="Thumbnail Image">
</a>