alt text

Caption

Web dev: What browser is visiting the page?

User agent string:

A screenshot of a browser. The URL bar reads firefox://settings, a button on the URL bar is labelled Netscape, a popup from the button reads: “You’re viewing a secure Opera page”, and the web page title reads “Chrome settings”.

  • dan@upvote.au
    link
    fedilink
    arrow-up
    6
    ·
    59 minutes ago

    User agents are essentially deprecated and are going to become less and less useful over time. The replacement is either client hints or feature detection, depending on what you’re doing.

  • apprehentice@lemmy.enchanted.social
    link
    fedilink
    English
    arrow-up
    60
    arrow-down
    1
    ·
    5 hours ago

    Functionally useless. With the web standardized, we shouldn’t need user agents anyway. It would be more beneficial to ask “do you support X, Y, and Z?”

    • dan@upvote.au
      link
      fedilink
      arrow-up
      4
      ·
      1 hour ago

      That’s exactly what you’re supposed to do with the modern web, via feature detection and client hints.

      The user agent in Chrome (and I think Firefox too) is “frozen” now, meaning it no longer receives any major updates.

    • Xanthrax@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 hours ago

      Web UI for touch screens is a lot different than keyboard and mouse. I still switch to desktop most of the time because the mobile site will lack critical info, though. They “have” to streamline the experience for mobile, but I hate it when they fully remove features.

    • Quacksalber
      link
      fedilink
      arrow-up
      17
      arrow-down
      1
      ·
      5 hours ago

      Youtube currently (for weeks now) does not work on Firefox, if you don’t use a Firefox user agent. Google doing sketchy things again.