Smart Bundling: How To Serve Legacy Code Only To Legacy Browsers
While this approach is total overkill for pretty much anything I build, if you have a lot of JavaScript, especially JavaScript that uses newer language features, you might consider taking an approach like this. IT ensures the broadest level of support for your app without penalizing more modern browsers by making them download polyfills and transpired code they don’t need.
Great work!