The Only Correct Script Loader Ever Made
A team here at Formidable was recently tasked with choosing a JavaScript loader in order to dynamically load scripts in the browser. After exhaustively testing every script loader we could think of, we found them all to fail in at least one way. With a complete test suite in hand, we set out to build the first correct script loader ever made. Today we’d like to introduce little-loader; clocking in at only ~865 bytes (minified) and no dependencies!
For a more detailed overview you can watch our very own Brian Beck talk about some of the things that went in to creating little-loader including the comprehensive script loader test suite (script-atomic-onload) and a fancy SVG badge creator (badge-matrix). little-loader: https://github.com/walmartlabs/little-loader
Testing suite: https://github.com/exogen/script-atomic-onload
Badge creator: https://github.com/exogen/badge-matrix