3 ms·
> media viewer -> dialog <dialog> has only been available in Safari for about a year. https://caniuse.com/dialog https://caniuse.com/dialog Wikpedia is one
by pier25 3y ago
> media viewer -> dialog
<dialog> has only been available in Safari for about a year.
https://caniuse.com/dialog https://caniuse.com/dialog
Wikpedia is one of the most popular sites on the internet. It needs to be as compatible as possible so that means using JS.
- manquer 3y agoYou should be able to detect user agent and determine capability and send the poly-fills for backward compatibility ?
- pier25 3y agoSure, there are many different ways to tackle this.
- ryan_lane 3y agoThen you'd need to shard your cache on user agent, which would lead to considerably worse performance for everyone.
- manquer 3y agoSurely at the scale of Wikipedia that wouldn’t be a factor ? considering the dominance of few browsers (chrome , safari on iOS) will most users notice any difference? The first one (with that UA) to the site with a new build will have they cache key warmed up ?
- ryan_lane 3y agoUser-agent is way more granular than chrome, safari, firefox, etc. It's not a great shard key.
- paulddraper 3y agoAnd hurt your caching.... All to get rid of a tiny bit of JS.
- manquer 3y agoAll this to support older browsers and get rid of all JavaScript where you can . Plenty of sites aspire to be JS free for a variety of reasons it is worthy goal