4 ms·
It is better to get the feature along with a bigger bundle then not get the feature at all even though your browser supports it. Note the parent is claiming th
by runarberg 7y ago
It is better to get the feature along with a bigger bundle then not get the feature at all even though your browser supports it.
Note the parent is claiming that feature detection is not feasible for a site like YouTube because of the extra cost. Here I show how you can still bundle optimally for whitelisted (i.e. QA-ed) user-agents while still not blocking non whitelisted user-agents from accessing these features, and still not brake the page for user-agents that don’t support it.