Live data from Hacker News

Chrome phasing out support for User-Agent

infoq.com

1–10 of 329 posts

Re: Chrome phasing out support for User-Agent

#5

I was wondering. Isn't the page rendered on mobile and desktop based on user-agents? How would that work now?

There not phasing out User-Agent strings entirely, they're actually upgrading them: https://github.com/WICG/ua-client-hints

It looks like there's more fine grained control in the new version.

Re: Chrome phasing out support for User-Agent

#7

I was wondering. Isn't the page rendered on mobile and desktop based on user-agents? How would that work now?

I thought it used Javascript to detect screen size. At least it should react to resize events and if the dimensions are something that align with mobile, it should switch to mobile mode.
Post reply on HN