• tiredofsametab@kbin.social
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      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.

      • catastrophicblues@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        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.

    • bigbluealien@kbin.social
      link
      fedilink
      arrow-up
      4
      ·
      1 year 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

    • hex
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

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