OniOnXT replied
Thank you!
Hi!
I want to add the "data-hero" attribute to the amp page markup for the main image of the "amp-img" entry. But after looking through probably all the files of your plugin, unfortunately, I couldn't find where to edit the markup.
More information about this is written here:
https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/amp-optimizer-guide/explainer/#hero-image-optimization
Please tell me in which of the plugin files I can find amp-img for the main image of the recording (I attach a screenshot).
Thanking you in advance!
I'm sorry, but something is wrong here.
We still have an increasing number of pages that Google Search Console swears at.
They also have a new tool for checking the correctness of AMP pages:
And it describes all the same problems with the Font-display value and FontAwesome preloading that I wrote about earlier.
Please read it. Obviously, there is a problem with fonts that affects the blocking of content.
We are addressing you here only because errors occur in Google Search Console exclusively with AMP versions of pages; we have no errors with regular versions.
Please see the screenshot.
Hello!
The AMP version of my site has problems with blocking external resources (fonts and icons) and this negatively affects LCP (Largest Contentful Paint).
The problem is with three blocking resources:
1. https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i
2. https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i
I believe the problem is that google fonts are not set to default font-display: swap.
3. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
And icons are included in the header, so they block display.
Please clarify, was this really intended for the amp version? Is it possible to add "font-display: swap" to the fonts and move the Font-Awasome to the body?
Want to join this conversation or access attachments? Sign in first.
Open your ticket archive, review validated licenses, and continue product support conversations from one customer portal.