3 ms·
You should be able to detect user agent and determine capability and send the poly-fills for backward compatibility ?
by manquer 3y ago
You 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