- This topic has 22 replies, 4 voices, and was last updated 4 years, 4 months ago by
Tom.
-
AuthorPosts
-
May 18, 2021 at 7:01 pm #1788813
HT
I have a Broadcast variant of GP. It’s basically creating problems with Cumulative Layout Shift (CLS). In the mobile and desktop team.
Can you please help to understand what is that I’m doing wrong or is it a known issue with the theme itself?
May 18, 2021 at 7:10 pm #1788818HT
Can you please also confirm whether the theme is compatible with all Core Web Vital components?
May 18, 2021 at 9:16 pm #1788902Elvin
StaffCustomer SupportHi there,
I’ve checked the site and noticed that it doesn’t seem to be using optimization plugins to improve how the assets are served.
I highly recommend getting one to at least minify and/or aggregate the stylesheets and/or scripts.
I’d also try adding an image optimization plugin to improve the speed of the images are served.
Note: I’d address the ones highlighted here – https://share.getcloudapp.com/DOuDzyen – especially the “Reduce initial server response time” flag because everything else relies on it. This isn’t something a theme can fix. This is generally fixed by getting a better quality hosting.
May 18, 2021 at 11:06 pm #1788997HT
It’s using an optimization plugin. But, can you answer the details about themes CLS as showed in the video, please?
May 18, 2021 at 11:54 pm #1789057Elvin
StaffCustomer SupportIt’s using an optimization plugin. But, can you answer the details about themes CLS as showed in the video, please?
The theme, as it is, will perform fast. The problem starts when you start adding scripts.
I’ve checked the exact page on your video and here’s the results.
https://share.getcloudapp.com/geubnXrjSimilar to the previous reply, it’s being flagged with “Reduce initial server response time”. It’s consistent on all of your pages because this is a hosting quality issue. There’s nothing we can do about this. You need to migrate to a better host or get a higher plan for higher quality hosting.
This is important to address because all the other requests that load on your site will depend on it. If this is slow, the requests for assets will load late, and if assets like stylesheets that are responsible for layout loads a bit late, it will cause CLS.
Aside from this, there are other things like “Reduce the impact of third-party code”, “Reduce JavaScript execution time” and all the other flagged issues.
If you read the reports in detail, you’ll see that there are no theme-related scripts being flagged in it. It’s all related to the google ads you’ve added to the site. That’s where the optimization plugins come in.
You’ll need an optimization plugin to improve how the ad scripts are being served.
Note: I’ve checked the site and it doesn’t look like it’s using any optimization plugins like you mentioned. Perhaps you’ve installed it already, but this will still require configuration.
May 19, 2021 at 12:22 am #1789096HT
More details in the private section. But I didn’t get the answer about the layout shift happening. Why is that layout shift happening?
May 19, 2021 at 3:24 am #1789298David
StaffCustomer SupportHi there,
your site is starting the render before all the HTML has been loaded – which is not anything to do with the Theme. Some other code / optimization whether that be a plugin or server side would be causing that.
I would begin by disabling any plugin/server optimizations first.
May 19, 2021 at 5:10 am #1789440HT
I think I’m getting confused.
In the earlier replies, it was mentioned that you need optimization plug-in etc….
Now in the latest reply, it says I need to disable the plugin.
Is that just strange?
your site is starting the render before all the HTML has been loaded
– I don’t know what you mean by this? The layout shift is happening because of full HTML is not getting loaded?
May 19, 2021 at 5:26 am #1789462David
StaffCustomer SupportThe default behaviour of a browser loading a web page in very simple terms is:
Load ALL HTML and Style Sheets > Begin displaying ( rendering ) the page in the browser.
On your site the HTML for Sidebars is not being loaded until AFTER the browser begins rendering the page.This means that some function is interfering with the HTML being loaded.
To debug this issue we need to identify what code is causing the problem:
1. Disable all optimizations – does the CLS go away?
a. IF YES – we know its an optimization setting thats causing the problem. Then its a case of investigating which optimization setting is causing the problem.
b. IF NO – we know its not the optimization thats causing the issue and we need to look at what else can be causing this. Which could be another plugin or 3rd party service such as Adverts.If we can first eliminate the optimizations as the problem then we can move forward.
May 19, 2021 at 9:07 pm #1790595HT
I have tested as requested but couldn’t find any issues related to plugin/optimization.
1. Disabled all optimizations – does the CLS go away? NO
2. I have disabled all the possible plug-ins from the site – – does the CLS go away? NOAny other tips?
May 20, 2021 at 3:37 am #1790959David
StaffCustomer SupportCan you check the login details – theres a front end login form that doesn’t accept those details
May 20, 2021 at 3:41 am #1790966HT
Login Details are correct. I’veve tested again.
May 20, 2021 at 3:59 am #1790982David
StaffCustomer SupportCan you disable the Adverts on the staging site?
May 20, 2021 at 4:06 am #1790991HT
It’s disabled now.
May 20, 2021 at 5:02 am #1791046David
StaffCustomer SupportI am still seeing the Ads load …. but can’t see whats causing the deferring of that HTML. Oddly another user had the same issue and he narrowed the conflict down to his Anti Spam plugin:
I cannot explain why that would cause it – but i notice you have Akismet on the site – can you disable that so we can eliminate that as the cause
-
AuthorPosts
- You must be logged in to reply to this topic.