Page Loading Hidden Elements - Forum | JoomShaper
Solved SP Page Builder

Page Loading Hidden Elements

Asked by johnny 3 years ago Last activity 3 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?

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

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.

4 more replies

Paul Frankowski Senior Staff
3 years ago · edited

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.

johnny Asked this

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.

Paul Frankowski Senior Staff
3 years ago · edited

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

johnny Asked this

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

Log in to reply.