Skip to content

[amp story shopping] Remove attachment templates when far from active page #37517

@processprocess

Description

@processprocess

Description

Attachment templates can potentially build a lot of dom that may not be necessary if the user navigates far away from them.
They should be removed from the dom at a certain distance and can be re-built if the user goes back.

Alternatives Considered

Leave them in the dom.
It's okay to leave them but it keeps lots of un-needed dom in the document, which may slow down the experience.

Additional Context

Distance can be read using a pattern used in panning-media

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions