Archived topic
Mobile Speed extremely slow
8 replies · Started by Alejandro on December 11, 2021
Hi guys,
I am running some speed tests and having issues with mobile.
In desktop I rank 97 in Google PageSpeed Insights (First Contentful Paint less than a second), but in mobile I only rank 70 and First Contentful Paint is 4,1 seconds
I do use a CDN, caching on the server side (varnish) and using WP Rocket.
Can you help me?
Thanks
Hi there,
if you can provide a link to the site then we can take a quick look for any obvious issues.
Hi Alex,
For starters, you can try combining your CSS to reduce the number of request.
Consider preloading the page hero's background image as well.
As for how to do it, you simply hook <link rel="preload" as="image" href="full_url_to_the_image"/> to wp_head of your site. Replace the href with the url path of the image you use as the background of the page hero. :)
Oh, thanks for the tip.
How do I do that if I have 2 different images, one for desktop mode and the second one for mobile view?
Thanks!
Hi there,
see my reply here:
https://generatepress.com/forums/topic/hero-images-on-mobile-are-blurry/#post-1970490
Thank you!
Yep, seems that this is helping a bit. I will try to get rid of some scripts also.
Thanks for the help!
Glad to hear that!