spraakbanken / korp-frontend

Frontend for Korp, a tool using the IMS Open Corpus Workbench (CWB).
https://spraakbanken.gu.se/en/tools/korp
MIT License
16 stars 8 forks source link

Maintain browser compatibility #411

Open arildm opened 3 days ago

arildm commented 3 days ago

Do we need to support web browsers lacking modern language features?

Some users may be unable or unwilling to switch/update their browsers.

Offering a wider support requires refraining from new language features or adding transpilation or polyfills.

arildm commented 3 days ago

I did a little case study. We have been recording analytics with Matomo since March 2024, so I took a look at the browser versions used at our Korp site since then. Then I looked up which browsers support the JS ?? operator at Can I Use (inspired by the discussion in #410) and summed up the number of unique visitors from browsers with or without this feature:

Supports ?? Unique visitors % Comment
Yes 24365 96.1%
No 2 0.0% Firefox 49.0, Mobile Safari 4.0
? 996 3.9% Not listed at caniuse.com

Among the browsers not listed at caniuse.com, the most used ones are Facebook (1.9%), Brave (0.8%) and Google Search App (0.6%).