#774·lightbox2

Why are there four requests when I click on an image?

Author: yansheng836Created Mar 3, 2026Updated Mar 3, 2026

I've discovered a problem: when I click on an image and check the webwork, I find that it loads four images, twice the current image + the previous image + the next image. For example, on the introduction page (https://lokeshdhakar.com/projects/lightbox2/), when I click image-4.jpg, it will request four times.

This situation also occurs when you click on "Previous page" and "Next page".

I wonder if this behavior is normal?

Image