*

webcity

  • ****
  • 243 posts
Lightgallery loaded twice
« on: May 01, 2023, 04:25:49 AM »
Hi,

I'm trying to optimise my pages to load as fast as possible.

I've noticed on listing page lightgallery is loaded twice wit two different version numbers. Can we delete the earlier version and if so where is the best place to delete the code?

https://epsilon.mb-themes.com/for-sale/computers-hardware/samsung-led-32inch_i264

Many thanks

*

Wiz

  • ****
  • 148 posts
Re: Lightgallery loaded twice
« Reply #1 on: May 01, 2023, 01:05:28 PM »
There are several lightgallery 1.x versions being utilized (common issue). The solution is to merge lightgallery to latest 1.x or preferably merge and upgrade to latest 2.x as 1.x is no longer maintained with the last release in 2020.

*

MB Themes

Re: Lightgallery loaded twice
« Reply #2 on: May 05, 2023, 11:30:17 AM »
It should be sufficient to use equal name when enqueuing lightgallery.
One is probably for Blog plugin and one for theme.
It should be safe to use just one of those.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots