ampproject / ampproject/amp-toolbox-php
Add preconnect resource hints for more components
- Dominant language
- PHP
- Stars
- 74
- Forks
- 25
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 3
Description
When running a Lighthouse audit on an AMP page that contains an `amp-youtube` component in the first viewport, I saw a “Preconnect to required origins” warning:
> 
While AMP components already do `preconnect` in themselves, they do so _after_ the component script has loaded and ran. If we add `rel=preconnect` resource hint links to pages that have `amp-youtube` elements automatically, then we could shave some additional milliseconds and improve the Lighthouse score.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.