ampproject / ampproject/amphtml
[amp-story] Localization performance improvements
Open
P2: Soon
Stale
Type: Feature Request
WG: stories
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
There's some room for improvement when using the `LocalizationService`, and while #27990 and #28224 have been paving the road, we can go further, by e.g.:
- [ ] Move initialization of LocalizationService to `buildCallback()` in `amp-story` and in any relevant components.
- [ ] Lazy load localization files:
https://github.com/ampproject/amphtml/blob/9f79bc10831055b6b8b9321cf633822efd498941/extensions/amp-story/1.0/amp-story.js#L363-L394
/cc @ampproject/wg-stories
Contributor guide
Assessment
This issue has not been assessed yet.