How To Disable A Section, Not Only Hide It - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Disable A Section, Not Only Hide It

C

Camille

SP Page Builder 1 year ago

Hello, I don’t want to display a section on mobile to lighten the page. But in fact I see that it adds only the class. sppb-hidden-xs to the section and therefore all code and images are loaded. The goal of lightening is not achieved. This section contains an ADV portfolio module and the images are not in lazyload. So all images are loaded even if they are not displayed. I think it would be better to have a function to completely disable a section than just hide it, it could have a net positive impact on PageSpeed. Would it be possible to add this feature in a future update? Or is there another way to achieve this result?

Thanks ! And happy New Year of course !

0
2 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 year ago #143357

Hi

Thanks for contacting us and Happy New year. Could you please give me your site URL and also screenshot of your issue? I need to check.

-Regards.

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

Hi Camille,

I am afraid it's not possible yet. Right now, as you noticed we use bootstrap classes to hide object, but indeed it still exist in source code.

The only way to hide it would be to use script that will detect mobile device and will not load content.

For example, Advanced Module Manager (RegularLabs) allows that for modules, also SPPB modules, but they have to be used in template position, not inside SPPB.

0