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

> Isn't that the whole reason the "Show desktop version" feature even exists in Chrome, to send the desktop header?

This is indeed what it does; I wish it did more!

Specifically, when visiting responsive pages on a phone where the mobile-viewport-size layout is just 100% broken, I’d love if “Request Desktop Site” actually set the viewport to be that of a desktop browser, and then set a low CSS/viewport zoom level to compensate. I want the dual of what happens when I set the “simulate a phone of X size” option in Chrome’s inspector!




I'm pretty sure Chrome's "request desktop site" option does change the viewport size. Or if it's doing something else, it has the same effect.

Have you tried it in the last couple months? It seems like a fairly recent change in behaviour.


I have a bookmarklet to specifically add/edit the <meta> tag on the page to change the viewport width to 1200px.

Works in many cases, although there still are sites that break with this. I have seen sites that uses the value of window.innerWidth at load and never bother listening for changes in the width. I have seen sites that uses the presence of onTouchMove event to determine whether to use a mobile layout.




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

Search: