On such implementation
<Lightbox
currentImageIndex={currentImage}
setCurrentIndex={setCurrentImage}
isOpen={viewerIsOpen}
onClose={() => closeLightbox()}
images={photoGallery.photos}
/>
When viewerIsOpen is true, the modal opens and starts downloading every elements of images.
If there is a lot of elements, it slows down the browser a lot, especially on mobile.
Is there a way to download only the visible image or maybe lazy load only the few next images ?