ampproject / ampproject/amphtml
[amp-story-player] (Performance)Decrease long task duration caused by loadPlayers()
Open
P3: When Possible
Stale
Type: Bug
WG: stories
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Monitoring performance of the player I noticed a long task towards the beginning of the loading that is caused by `loadPlayers()`, which ends up calling several `appendChild()`s.
This is most likely called by the fact we don't batch these DOM mutations in a `vsync` / `resources` `.mutateElement()`.

@ampproject/wg-stories
Contributor guide
Assessment
This issue has not been assessed yet.