Page Loading Hidden Elements - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Page Loading Hidden Elements

J

johnny

SP Page Builder 2 years ago

Joomla 4 and SPPB 3.8.9

On my website I have a lot of SPPB elemnts that I have 'hidden', using the 'disable addon' button.

I know that these elements do not display on the front end of the website, but do they affect the page loading times?

For example, are they loaded in the background, and therefore affecting the speed my page loads?

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #115160

It depends on what you want to hide, but if there is only one addon inside, then yes, if I were you, I would disable the whole Row.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #115135

Hi Johnny,

indeed in html code all those objects are loaded, becuase hide/show is based on CSS @media queries (built-in browser feature), not PHP/JS detection.

Keep in mind that using device detection library in browser-side means loading an extra 250-500 KB of code. So it has disadvantages, not only speed advantages. As I know only Advanced Module Manager (RegularLabs) has this kind of feature for modules. So I am afraid that there is no perfect solution.

0
J
johnny
Accepted Answer
2 years ago #115146

Thanks Paul,

So, should I delete any unused SPPB elements rather than use the 'disable addon'?

I have a LOT of disabled elements on various pages. I have noticed page loading times are slow, especially when in SPPB edit mode.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #115148

I talk about Responsive mode only. But Disable Row, Column or Addon (screenshot below) works on different on/off level, so those disabled objects are NOT loaded on front-end. It's like Disabled Module. I hope now is all clear.

info_1031_2023.jpg

0
J
johnny
Accepted Answer
2 years ago #115155

So, I should use Disable Row instead of Disable Addon?

0