Dynamic bundles based on browser/client capabilities
More and more it's becoming a common practice to detect browser features and capabilities. There are even libraries and or tests used by many sites. Libraries such as Modernizr come with a slew of such tests.
It would be nice to issue the client a token/url for the scripts and css specific to that browser after doing feature detection.
This prevents ever subsequent page running the same test and doing the same conditional loading of scripts. Otherwise, another ugly alternative is to have a bunch of bundles for common browsers, but this seems more like doing browser sniffing rather than feature detection.
Would love to hear if this is something that could be in the product instead of having to hand roll using Web Optimization intrinsics.
This sounds interesting – we’ll take a look as a part of our investigations on better integrating Web optimization with script loaders.