ampproject / ampproject/amp-toolbox-php

Add preconnect resource hints for more components

Open
#10 4 comments 0 reactions 0 assignees View on GitHub
Optimizer P1 Performance
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:

> ![image](https://user-images.githubusercontent.com/134745/53190704-ff03ac80-35be-11e9-90f4-bc19ec15c71b.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.