Search code examples
modernizrpolyfillswebshim

A library/service that loads *all* modernizr webshims/polyfills at once?


I'm looking to be able to use, in perhaps a couple lines of code, an external call to load every single webshim for a browser.

I understand that this would load the browser with dozens of useless shims. For quick development, this is fine for a short period (really!). As my site is ready to launch and I've figured out which shims need to stay, I'd want to be able to pass a whitelist and/or blacklist of features, modernizr style, so that I wouldn't be using unneeded shims.

What I'm hoping to avoid is basically having to compare various shims, and instead have a single service that loads the latest version of the best of breed. I'd also want it to consolidate the js files that are downloaded.

In short a "modernize_all", which shims everything by default, for instance during a quick web hack meetup or when time is limited. Also can be passed only the specific tests to modernize at a later time to save browser downloads & memory.


Solution

  • None exist, however the current moderizr github repo has a list of polyfills. It would be trivial to build a dev version of modernizr, download all of the linked shims, and then set up a bunch of yepnopes