this post was submitted on 21 Nov 2023
1266 points (96.0% liked)

Firefox

17884 readers
29 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 11 months ago (3 children)

Since we have CSS what would be the purpose of the server knowing the aspect ratio?

[–] [email protected] 11 points 11 months ago (1 children)

Ideally, to save bandwidth on both sides, the server would only want to serve you the JS and CSS you need. I'm not sure how frequently that optimization is made, however.

[–] [email protected] 2 points 11 months ago (1 children)

I’m a bit rusty on this, but I think you’d need to split your Sass/SCSS/etc before Webpack will perform tree-shaking or allow lazy-loading. I don’t think many devs wrote it that way: personally, I like my mobile rules beside my desktop ones, since my styling is component-wise.

[–] [email protected] 1 points 11 months ago

I haven't done UI work in years so I'm not sure how they do it these days.

[–] [email protected] 4 points 11 months ago

Fair point, there could be reasons, and I'd say there's no privacy concerns if that's all they get, but I know it's part of fingerprinting. I said 99% so they don't even need to know that

[–] [email protected] 1 points 11 months ago

that's how css gets its media queries, user agents