5 ms·
Why does AMP do anything with scrolling at all?
by Touche 10y ago
Why does AMP do anything with scrolling at all?
- JohnDotAwesome 10y agoKnowing where the viewport is relative to the document is pretty valuable; It means that AMP can defer loading potentially sluggish content until the viewport lands on a particular position.
- Touche 10y agoSounds like a premature optimization to me. The websites I tried did not have such requirements but the scrolling was just as janky nonetheless.
- stonogo 10y agoIt's not premature optimization. It's optimization for ad revenue; they can charge more if they can prove an advertisement is visible on screen.
- deleted 10y ago[deleted]
- cramforce 10y agoThis is just CSS which exists for unrelated reasons.
- idlewords 10y agoFor surveillance and user tracking.