- This topic has 5 replies, 2 voices, and was last updated 4 months, 3 weeks ago by
Tom.
-
AuthorPosts
-
October 8, 2020 at 4:54 am #1478271
Heather
Hi, I have this error in search console, 184 poor on mobile and 152 urls need improvements. Could you take a look for me and see what you think? Thanks
October 8, 2020 at 9:45 am #1478875Tom
Lead DeveloperLead DeveloperHi there,
If you run your site through Pagespeed insights, it will give you a list of things to fix: https://developers.google.com/speed/pagespeed/insights
The screenshots show the CLS is likely coming from a couple of places:
1. Your mobile header logo is lazy loading – what plugin are you using for lazy load? Is there a way to exclude images? If so, you can exclude the
is-logo-image
class.2. The red banner showing up may be contributing as well, but it’s worth testing again after fixing #1.
3. Then, I would deal with your resources. Autoptimize is a great choice for that: https://generatepress.com/fastest-wordpress-theme/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 8, 2020 at 12:08 pm #1479087Heather
Hi
I’m using wp rocket lazy load, so I’ve added in functions file:
function rocket_lazyload_exclude_class( $attributes ) {
$attributes[] = ‘class=”is-logo-image”‘;return $attributes;
}
add_filter( ‘rocket_lazyload_excluded_attributes’, ‘rocket_lazyload_exclude_class’ );think that’s right?
2. Disabled the red banner, not sure it made a big difference, will probably end up turning it back on.
3. Autoptimize is already installed and configured as per your instructions πNot sure there is much else I can do?
Thanks
HeatherOctober 9, 2020 at 9:03 am #1480674Tom
Lead DeveloperLead DeveloperThat looks like it brought your CLS from
0.34
down to0.038
, which is great.The next things you’ll want to look at is reducing the number of fonts on the site. Things like Font Awesome, Google fonts and other icon fonts aren’t great for performance.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 10, 2020 at 4:47 am #1481745Heather
Thanks, I will take a look at the fonts and see if I can do anything with them π
Heather
October 10, 2020 at 9:42 am #1482267Tom
Lead DeveloperLead DeveloperSounds good! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.