• Resolved clawrencia

    (@clawrencia)


    Hi there, in one of my pages I have used the SiteOrigin Layout Builder to create a post with 2 columns (66.6:33.4) ratio. The post on the left hand side is an image, and the one on the right is text. The problem is that this two columns gave me substantial CLS score, yet when I checked the source code they’re embedded within a container. I have tried different methods to try to eliminate this issue. Is there a solution to this? Thank you.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Im also having CLS problems.

    It seems like the metod used by the plugin to stretch content outside the initial container by calculating negative margins is causing CLS.

    Its easily visible if you emulate a slow 3G connection in chrome DEV Tools.

    Plugin Contributor alexgso

    (@alexgso)

    Hi clawrencia,

    Please navigate to Settings > Page Builder and open the Layout tab. Set Page Builder Layout CSS Output Location to Header and then save. Clear any page cache or minify plugins you’re using. How does that look?

    Kind regards,
    Alex

    Plugin Contributor alexgso

    (@alexgso)

    Hi convertorab,

    Thanks for reaching out. Ideally, in the future please open a new thread as it makes it easier for all parties involved to keep track of replies.

    It seems like the metod used by the plugin to stretch content outside the initial container by calculating negative margins is causing CLS.

    That’s correct. Unfortunately, it’s unavoidable. When using the Full Width Stretch Row Layout we need to bypass the themes container and to do that a shift has to occur. We can’t automate this process to happen any sooner than it already due to compatibility reasons, and there’s no way to automatically bypass or override a theme container in an automated manner without potentially (as it is possible to reduce/avoid) triggering a CLS without introducing further compatibility issues.

    You can, however, reduce how much of an impact this has by using performance-related plugins, such as Autoptimize (how to), and adding the following CSS to their Critical CSS sections:

    body.siteorigin-panels-before-js .siteorigin-panels-stretch {
      margin-right: -1000px !important;
      margin-left: -1000px !important;
      padding-right: 1000px !important;
      padding-left: 1000px !important;
    }

    That CSS will force the rows to the sides of the page, and prevent the CLS as much as possible on load and then the PB Full Width container breaker code will run and override this with the correct margins and padding to get the expected result.

    It should be noted that CSS is present elsewhere, but it’s typically minified/merged so it’s not always loaded quickly enough to avoid this CLS. I’ve logged a feature request to explore adding this CSS inline to avoid this.

    Kind regards,
    Alex

    Thread Starter clawrencia

    (@clawrencia)

    Hi Alex, thanks for responding.

    I am unable to find the Builder Layout CSS Output option you were talking about.
    In my screen I can see the following options

    • Responsive Layout
    • Use tablet layout
    • Use legacy layout engine
    • Tablet width
    • Mobile width
    • Row/widget bottom margin
    • Last row with margin
    • Row Gutter
    • Full width container
    • As for the cache and minify the plugins, I have done that but it didn’t show any promising results.

    Plugin Contributor alexgso

    (@alexgso)

    Hi clawrencia,

    The Page Builder Layout CSS Output Location setting was introduced in version 2.11.6 so you’ll need to be using a fairly recent version of the plugin to be able to adjust this setting. Can you please confirm what version of Page Builder you’re using? You can check this by opening your site and opening the admin area. Navigate to Plugins > installed Plugins and find Page Builder by SiteOrigin. The version will be listed below the plugin description. For reference, the latest version is 2.11.8.

    If you’re using a different version and you’re not seeing an update notice, can you please clarify what version you’re using? Also, please try navigating to Dashboard > Updates and click Check Again. Does the update notification appear now?

    Kind regards,
    Alex

    Thread Starter clawrencia

    (@clawrencia)

    Hi Alex,

    I just checked and it turns out I am running v2.10.13.
    I just fixed the CLS issue related to the columns. However, a new problem persist where the div.site-inner is now causing the CLS issue.
    Is it possible to solve it by minimising the CLS score using the solution of Autoptimise you mentioned in the previous post?

    Thank you

    Plugin Contributor alexgso

    (@alexgso)

    Hi clawrencia,

    That’s great to hear! ??

    Is it possible to solve it by minimising the CLS score using the solution of Autoptimise you mentioned in the previous post?

    The provided instructions are specific to SiteOrigin Page Builder so the suggestions won’t be of direct assistance in this situation. With that said, that plugin can be used to reduce this by optimizing your critical CSS. I recommend following the how to I linked (also linked below) and reaching out to the developers of your theme to see if they have any suggestions.

    https://www.wpfaster.org/blog/how-to-use-autoptimize-inline-and-defer-css-option

    Kind regards,
    Alex

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘SiteOrigin Layout Builder Causing CLS Score Issues’ is closed to new replies.