Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Largest Contentful Paint

Started by Jason 3 years ago · 5 replies · 549 views
3 years ago

I have a pretty snappy site, but the LCP on mobile is too long. It looks like the Hero image is the primary culprit. Is there any way to improve the load delay?
image|622x500

Thanks,
J

3 years ago

@unleashed, Are you using responsive images? This will allow the browser to choose different images depending on the size of the provided images and the dimensions of the device.

3 years ago

Not yet. I reviewed the Responsive images in the getgrav.org manual. Is it really as easy as adding the sizes with media queries in the markdown or twig?

3 years ago

@unleashed,

Is it really as easy as adding the sizes with media queries in the markdown or twig?

Why this doubt? Have you experienced issues with responsive images before using Grav?

Depending on the command you use, Grav will generated several images, each with a different size. These images will then be listed in the <img> element.

3 years ago

Great! Thanks for the confirmation and encouragement! I'll give it a try. It's less about doubt in Grav and more about my trepidation of coding. I thought there would be more involved.

Thanks,
J

3 years ago

@unleashed:
It’s less about doubt and more about trepidation.

It's always a good idea to experiment on a local development machine... :-)

After experimenting, please mark your post as 'solved'.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 20 hours ago
1 34 19 hours ago
Support · by Duc , 1 week ago
2 70 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago