Hacker News new | ask | show | jobs
by yoodenvranx 2571 days ago
Has anyone noticed that since a few weeks mobile Chrome shows a really curious behavior?

On a normal webpage:

- I scroll down -> address bar is hidden.

- I scroll up a bit and then down again -> address bar is shown

On any AMP page:

- I scroll down a bit -> address bar is hidden

- and then I can scroll in any direction I want and the address bar never appears unless I scroll to the very top

For me that feels like Google wants to keep me inside the AMP page and makes it harder to navigate to a normal page.

4 comments

Surfing the web via google results has become a pain, and I try to avoid it as much as possible now.
AMP pages enclose the page you visit within the html of google. So from the browsers perspective it is styling a box, not a scrolling body of text. iOS has similar weird behavior in Safari, and it’s pretty annoying.
I noticed this as well. I couldn't think of a benign or accidental explanation for it.
I just tested an AMP page in mobile Chrome, and I'm not seeing the behavior you described. Once I scroll up again, the address bar reappears.

Example: https://photos.app.goo.gl/a8A3WukpMiFPMBaNA

(Disclosure: I work for Google)

Thx for the reply! I did some more investigation and I can reproduce it the following way:

- go to https://news.google.com and scroll down until the address bar is hidden

- click on any of the AMP links

- the AMP links loads and the address bar is still hidden

- scroll around the page. The address bar only re-appears if I scroll to the very top, otherwise it stays hidden

I use Chrome 74.0.3729.157 on Android 7

Thanks! I see what's happening now: news.google.com is loading AMP links in a width=100% height=100% iframe. This means your scrolling affects the iframe and not the page. Chrome, however, uses scrolling of the top level page to determine whether the address bar should hide/show. So this gives two weird things:

* If you click on an AMP link without scrolling down enough to hide the URL bar, the URL bar remains even as you scroll through the AMP article.

* If you click on an AMP link after scrolling down enough to hide the URL bar (the case you saw), the URL bar stays hidden even if you scroll back up (unless you scroll all the way to the top, at which point you're scrolling the outer page).

I agree this is bad UX, and it happens because the Google News site is loading AMP pages in an iframe. Web Packaging fixes this: https://blog.cloudflare.com/announcing-amp-real-url/

(Disclosure: I work at Google on unrelated things, speaking for myself and not the company)

I was really expecting more then a “Works on my machine” from a google employee ;)
I wonder what they are testing with considering how dysfunctional basic stuff like YouTube pages are on Safari mobile.
I think you're suggesting Safari on iOS is broken.