amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP Validator: Allow attribute 'fetchpriority' for link tag

Open buihoanghai opened this issue 3 years ago • 9 comments

Description

Im trying improve the LCP by adding attribute fetchpriority suggest by this article https://web.dev/priority-hints/ image

Alternatives Considered

Allow attribute 'fetchpriority' for link tag

Additional Context

No response

buihoanghai avatar Mar 15 '23 03:03 buihoanghai

hmm let me check if we even allow for link elements currently

erwinmombay avatar Mar 16 '23 17:03 erwinmombay

hi @erwinmombay any update?

buihoanghai avatar Mar 23 '23 09:03 buihoanghai

now that our validators are back in sync we can probably add this.

@alanorozco could we get your feedback if this has any negative performance implications?

@banaag LMK if you have any thoughts on this on the validator side of things.

erwinmombay avatar Apr 20 '23 19:04 erwinmombay

The fetchpriority attribute also (more importantly?) needs to be allowed on the img element as well.

could we get your feedback if this has any negative performance implications?

Just merely allowing the fetchpriority would allow sites to begin to use it. This is important for reducing LCP: https://web.dev/fetch-priority/

westonruter avatar Jul 28 '23 16:07 westonruter

thanks for the input @westonruter , we are adding this to our current sprint

erwinmombay avatar Jul 31 '23 22:07 erwinmombay

Validator changes have been submitted, next step is deployment.

banaag avatar Aug 10 '23 17:08 banaag

It looks like the validator changes have been deployed, right?

westonruter avatar Oct 12 '23 21:10 westonruter

Yes, the changes should be deployed by now.

On Thu, Oct 12, 2023, 2:23 PM Weston Ruter @.***> wrote:

It looks like the validator changes have been deployed, right?

— Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/38715#issuecomment-1760384573, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIBG7FQVH5UG4JTIEHA3JTX7BNWZANCNFSM6AAAAAAV3H4SBU . You are receiving this because you were assigned.Message ID: @.***>

banaag avatar Oct 13 '23 01:10 banaag

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 23:04 stale[bot]