Hacker News new | past | comments | ask | show | jobs | submit login

As far as the scrolling goes, I'm fairly certain they're just using native scrolling (as in, not using a JS implementation that doesn't get the weighting right). The AMP Runtime needs to know scroll position, and they seem to just be capturing scroll information on the scroll event

See https://github.com/ampproject/amphtml/blob/master/src/servic...

I may be wrong on this, as I don't know enough about the codebase. However, I'm pretty sure it's just native scrolling.




> The AMP Runtime needs to know scroll position

Just querying the existing position shouldn't cause it to feel faster. What do they need to know that for anyway?

I promise you 100% that it doesn't feel right. I'm not saying they invented their own page renderer in JS and are using a canvas element for output, but they've done something that changes the feel. I've seen it on other sites too, I assume it's some JS/CSS thing.


>Just querying the existing position shouldn't cause it to feel faster. What do they need to know that for anyway?

tracking.


It's a simple CSS overflow property that Apple has included in Safari.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: