Largest Contentful Paint
-
I have 4-5 second Largest Contentful Paint, and I don’t know why.
Page insight say me I have several unused JS.
How to desactivate unused JS ?
Kind regards
The page I need help with: [log in to see the link]
-
The issue with “unused JavaScript” may be a false report. See https://github.com/ampproject/amphtml/issues/28638
In regards to Largest Contentful Paint, I’m unsure. We’ll have to investigate.
I looked at the Performance panel in Chrome DevTools and it identified the Largest Contentful Paint is for the images.
OK, the issue here are the images. You’re not doing anything wrong, however. The delay is due to the AMP runtime needing to load before the images can be downloaded. One way to improve this would be to add
link[rel=preload]element for those each of those 4 images.So the
headof the page could have included:<link rel="preload" as="image" href="https://***.com/wp-content/uploads/2020/04/test-orientation--741x486.jpg"> <link rel="preload" as="image" href="https://***.com/wp-content/uploads/2020/04/Agriculture-Low-Tech-1-741x486.jpg"> <link rel="preload" as="image" href="https://***.com/wp-content/uploads/2020/04/Biblilowtech-741x486.jpg"> <link rel="preload" as="image" href="https://***.com/wp-content/uploads/2020/04/Transport-Logistique-Low-Tech-741x486.jpg">If you can add these links via the
wp_headaction yourself for that template, this will fix the issue.It’s important to note that this will work because these images lack
srcset. Preloading images withsrcsetis not yet supported in non-Chromium browsers, as noted on https://web.dev/preload-responsive-images/We’re going to be addressing this issue in AMP itself so in the future you won’t need to do anything. You can follow progress on this here: https://github.com/ampproject/amphtml/issues/28672
-
This reply was modified 5 years, 10 months ago by
Yui. Reason: remove domain
Thank you for your quick support !
Please consider leaving a review of the plugin if you’d like to.
@westonruter Problem is solved now thanks to the update, thank you.
Just one last request, can you edit your post and delete the url of my website please, in the code area after “So the head of the page could have included:”
The topic is shown on google when we enter my site url and everyone can see my profile. Not very good for the security. Because I use this ID as admin.
Thank you for your job
-
This reply was modified 5 years, 10 months ago by
acheetahpurr.
-
This reply was modified 5 years, 10 months ago by
acheetahpurr.
Sorry, I cannot edit the post. The WordPress.org forums only allow editing posts for maybe a few minutes after posting. I’ll flag this topic to see if the moderators can make the requested change.
Hi there, sorry to jump on this thread but I”m also big issues with Largest Contentful Paint.
My site is showing 7.8s via page insights, the largest element appears to be Carousel.
Try as I might to improve the sites speed I’m finding it tought to isolate some of the back end java script run on wordpress, especially some within Jetpack, I have also tried deactivating some of the elements there too.https://mowlemstudios.com/photo-and-film-studios/
Any advice on where I might improve would be much appreciated! I understand it’s a job for a developer but hard times call for personal measures±!
Thx
-
This reply was modified 5 years, 8 months ago by
mowlemstudios.
@mowlemstudios Please open a new support topic.
-
This reply was modified 5 years, 10 months ago by
The topic ‘Largest Contentful Paint’ is closed to new replies.