- This topic has 5 replies, 2 voices, and was last updated 1 year ago by David.
September 24, 2020 at 12:26 am #1456430Johanna
We’re trying to optimize our page speed load on mobile. I’ve heard that it’s possible to upload images specifically for mobile on other WP theme builders, is that also possible to do in GeneratePress?
If yes, how can I do that?
BRSeptember 24, 2020 at 2:41 am #1456597DavidStaffCustomer Support
there is no function within WordPress that allows you to select an alternative image for mobile.
What WP does do is auto generate src-set images of various sizes for different display requirements. If there is no CSS or other function interfering with the intrinsic image size then then the Browser will select the most appropriate sized image.
Is there any specific area where you’re having issues? Happy to look at the site to see if we can suggest some improvements.September 24, 2020 at 4:50 am #1456755Johanna
Well, long story short, Google search console shows that we have poor LCP on mobile. A SEO consultant looked at the GSC results and said that one easy way to improve that is to make sure that images are optimized for different screen sizes.
However, when i’ve been reading on this matter, it seems like WP already optimize the images for different screens to some extent- a set of default sizes (as you said).
I’m stuck… I guess it’s possible to optimize the images even more than what WP already does but that may require adding some additional code (which is not really my expertise).
Thanks tho!September 24, 2020 at 5:30 am #1456792DavidStaffCustomer Support
The LCP time provided by Google simply refers to how long it takes for the Largest element ( as Google assumes this is most relevant to the visitor ) on the page to be displayed. Maybe the LCP element being identified is an image – but they are loading responsively and there is very little improvements to be made.
I ran a Page Speed Insight report and your LCP is 4 seconds. But your FCP ( which is the time taken to display the first pixel of content ) os over 3 seconds.
So the problem starts before any content is actually displayed.
Running a GT Metrix report, good news is your sites server is responding fast, but i can see the site is making 83 network requests. Which is a lot. In perspective the generatepress site makes 30 something.
Lets begin with some simple improvements regarding fonts:
1. Customizer > General change Icon Type to SVG. It won’t make much of a speed difference but thats 2 less font requests for the themes icons ( Search icon, nav toggle etc. ).
2. Google Fonts – you’re using Montserrat and a lot of the variants ( font weights ). If you know which variants you’re NOT using then you can deselect them in Customizer > Typography > Body:
The less variants means the less requests to google servers.
If you wish you can serve them locally ( so no DNS lookups for google ) you can use this Plugin:
It is still recommended that you remove as many redundant variants as you can.
Now lets look at 3rd party requests – over 30 of your requests are made to other servers. Google Fonts ( resolved above ), Google Analytics, Facebook, Hubspot etc. Not much you can do about changing how quickly they load – but you can defer the loading of those scripts using the Flying Scripts plugin:
Finally if you think there is still room for improvement you can follow our optimization tips here:
Sorry if thats a lot to take in – might be best to work through them one at a time. Remember the main goal is to reduce FCP – any improvements there will be reflected in the LCPSeptember 30, 2020 at 12:25 am #1464794Johanna
Thank you so much for your tips! I will definitely take a look at it!September 30, 2020 at 2:55 am #1464959
- You must be logged in to reply to this topic.