&gt; lots of JS libraries expect things like viewport and window size information, I wonder how Google is achieving that.<p>Just plug in common screen parameters (e.g. 1920x1080, 1366x768, ...) and analyze it as if it were the result you&#x27;d get by default with Chrome on such a screen, I would imagine.