r/webdev • u/bersus • Oct 15 '26
Viewport size statistics
Hey web devs, has anyone actually tracked the real viewport resolution of their users (with js)? I'm trying to figure out how many people don't maximize their browser and just keep it in a resized window. LLMs claim that 75% of people don't use maximized windows, but I seriously doubt that's accurate.
P.S. I'm not talking about screen resolution, I mean strictly the viewport size.
13
Upvotes
6
u/zomerbk Oct 15 '26
The useful metric here is probably the distribution of `innerWidth × innerHeight` for desktop page views, with mobile/tablet split out. But that alone can’t tell whether a window is maximized: browser chrome, OS scaling, and display size all affect the viewport. If you want to compare against maximized, collect `screen.availWidth/availHeight` too, while treating it as a rough proxy rather than ground truth. Report the sample period and deduplicate by session so repeat visitors don’t dominate.
4
u/jackusD Oct 15 '26
Was there a source for that figure? I assume mobile users are excluded, but even so I'd be shocked if it was anywhere near that high.
On mac, would a full screen user only count if the user has pressed the full screen button, or would having the window stretched to fill the available screen space still count?
4
u/Complex_Solutions_20 Oct 15 '26
When I am using a computer for anything serious I am typically looking at several different things at once. If I'm comparison shopping I may have 4 different browser windows open each half-screen across dual monitors so I can reference back and forth. If I'm writing up a report I typically have 1-2 windows of reference material open on one monitor and my document on the other.
I don't understand how people use a phone/tablet to research anything, I can't stand being constrained to just 1 little window.
3
u/the_ai_wizard Oct 15 '26
Perhaps what your LLM didnt mention is that it is site and context dependent. but, responsive solves this so it should be irrelevant. look at your own GA stats or logs
i encourage you, for the sake of understanding LLMs, to go back and say, "this seems like it isnt correct and there are tons of exceptions" and watch it do a 180
2
u/Squigglificated Oct 15 '26
It's surprisingly hard to find up to date published statistics on this.
This article from 2017 discusses the problem and show some stats, but that's pretty ancient by now.
https://adswerve.com/blog/screen-resolution-browser-size-in-google-analytics
It's a very useful thing to track.
2
u/I_AM_NOT_A_WOMBAT Oct 15 '26
Can you ELI5 why this is important? (Genuine question, I want my work to look good and be usable, and I feel like I'm missing something here.)
1
u/ferrybig Oct 15 '26
What do you mean with maximized windows? This seems like a metric dominated by noise
At my company I never use maximized windows, we have a extra wide screens, so a maximed window would be too wide
1
u/jbcaprell Oct 16 '26
Andy Bell’s Set Studio has some good data on user habits for this, which you can find at viewports.fyi.
1
u/One-Trips Oct 15 '26
I've checked this on a couple of small sites and the split surprised me less than the clustering: desktop widths clump hard around a handful of values that match maximized windows on common laptop screens, while the genuinely odd sizes are a small minority. I wouldn't trust the 75% figure either; my guess is the real non-maximized share is much lower, mostly devs and ultrawide users.
-1
u/tup1tsa_1337 Oct 15 '26
That is definitely accurate for desktops. The bigger the screen the less likely you're gonna use it Fullscreen for browser. That's the sole reason you need to cater to "laptop size" screens.
15
u/[deleted] Oct 15 '26
[removed] — view removed comment