Duplicate href loading requests #1699
Unanswered
TheCloudGate
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm experiencing an issue with the lightgallery plugin where it seems to be making duplicate requests to load the href of images when they are opened. This is causing unnecessary network traffic and potentially slowing down the image loading process.
Here's a breakdown of the problem:
When I open an image in the lightgallery viewer, I can see in the network tab of my browser's developer tools that two identical requests are being made to fetch the image's href.
I've traced the issue to what appears to be two separate lines of code within the plugin that are triggering these requests.
I'm wondering:
Is this behavior intentional? If so, what is the reasoning behind it?
If not, is there a known solution or workaround to prevent these duplicate requests? Here I attach a file so you can check:
Beta Was this translation helpful? Give feedback.
All reactions