Images In Before/After Slider Addon are Not Lazy-loading - Question | JoomShaper

Images In Before/After Slider Addon are Not Lazy-loading

GM

Garrett McDaniel

SP Page Builder 1 year ago

Images in before/after image slider element are not lazy-loading and slowing LCP. Need help defering load of images or section. Section in question is on the home page.

0
7 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #161016

About missing Lazy loading, indeed code was there but was not fully used :/

FIX 4 Now Download: site_unzip_override_old_file.zip

Unzip and using FTP upload here (override old file)

components\com_sppagebuilder\addons\before_after

You can also upload here (create missing folder names)

templates\shaper_fixter\sppagebuilder\addons\before_after

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #161014

Hi Garrett.

What version of SPPB you have? becuase v5.3.4 it should have lazy loading in <img code as I saw, but.... I may have temporary solution for you...

0
GM
Garrett McDaniel
Accepted Answer
1 year ago #161015

Paul, I have V5.3.4.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #161018

About LCP

On Home Page in Page Settings > Custom CSS add that

.sppb-before-after-wrapper {min-height: 535px;}

in theory should help, but you have height value anyway even now there.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #161019

I noticed that you implemented my changes, and Lazy code is used now :)))

0
GM
Garrett McDaniel
Accepted Answer
1 year ago #161020

Yes, Thank you Paul, I also added custom CSS to home page. Thanks Again.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #161022

You're welcome.

To improve LCP you have to talk with SEO Expert from your city/country, it may give you extra tips what you have to do or/and we can improve in the future updates.

0