2 ms·
What you are describing is serving up different assets based on user agent detection. The "tool" in this case would be the application responsible for serving
by t1amat 10y ago
What you are describing is serving up different assets based on user agent detection. The "tool" in this case would be the application responsible for serving it, most likely either your custom server-side web app code, or your web server itself.
You should continue to use the transpilers for some time though. It has been reported that many ES6 features run quite a bit faster as transpiled ES5 than natively as ES6.
- Cthulhu_ 10y agoIt should be possible to do so client-side by having a bit of loading / bootstrapping JS that does the feature detection.
- t1amat 10y agoWhile technically feasible that is a low quality solution for the sake of keeping the solution space in JavaScript. JavaScript-based feature detection is one thing but conditionally loading the entire application is another. It is wholly pointless if you are already transpiling to ES5, and as mentioned numerous times, a performance problem in at least the short term.