ampproject / ampproject/amphtml

amp-youtube performance

Open
#35,018 2 comments 0 reactions 1 assignee Claimed by @erwinmombay View on GitHub
P2: Soon Stale Type: Feature Request WG: performance
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

We implement but it makes performance drop indicated by low score web-vital, specifically LCP. 480 KB /base.js (youtube.com) with just potential saving to 358 KB. embed-player.js (64KB), potential saving 33.5KB. I expect everything module I use from the AMP site should give the best performance. So the request is: Improve the module performance so It doesn't give a bad score on core vital.

![Screen Shot 2021-06-24 at 22 16 03](https://user-images.githubusercontent.com/6524887/123291589-6f7ab980-d53c-11eb-82ae-40be987c2881.png)

### Alternatives Considered

no alternative. Do you recommend using amp-video instead?

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.