• guy@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Usually they’re building the website with browserlist and polyfills, and they specify how old a browser they wish to support, usually by analysing percentages of public usage, or they allow types only supported in newer browsers. Meaning if they use a feature only available in newer browsers, then it won’t be automatically backported to support older browsers.

    But that’s only if they actually use those features, they’re just available to them. And it’ll only break in those places they do use them, which could be quite little of the site.

    So often it’s just “we can’t guarantee it’ll work in your old browser and enough of our users use newer browsers that we’ll block you and not care”.

    • Cyyy@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      yupp, and i hate that. i use a firefox version that don’t supports private fields, and because a common js lib uses them a lot of websites suddenly stopped working for me just because of this bs. instead of just using a normal variable they use private fields and kill a ton of older browsers by doing so. and most website owners don’t care so asking them just leads to them saying “just upgrade bro”.

      • redcalcium@lemmy.institute
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        private fields

        Man, javascript is starting to turn into java, isn’t it? They added encapsulation. What else they’re going to add?