The Only Correct Script Loader Ever Made

7 January 2016

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

Join our team — we're hiring!

Related Posts

Jetpack: trace your way to faster and smaller Serv ...

Want faster-than-ever-before packaging speeds combined with the smallest possible bundle size for your Serverless Framework application? Come meet the ...

Jetpack: multiple engines for your Serverless pack ...

The 'serverless-jetpack' plugin continues its mission to make Serverless Framework packaging and deployment rocket-fast with new features including pa ...

Jetpack revisited: Even faster Serverless packagin ...

After introducing the 'serverless-jetpack' plugin two weeks ago, we took the entire problem back to the drawing board and came up with an even faster ...

Check out more of Emma's blog posts