The Only Correct Script Loader Ever Made

January 7, 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

Related Posts

A Rare Interview With A Designer who Designs Command-line Interfaces

May 13, 2024
For years, terminal and command-line applications have followed a familiar pattern: developers identify a need, code a solution, and release it for free, often as open-source software.

The Evolution of urql

December 6, 2022
As Formidable and urql evolve, urql has grown to be a project that is driven more by the urql community, including Phil and Jovi, than by Formidable itself. Because of this, and our commitment to the ethos of OSS, we are using this opportunity to kick off what we’re calling Formidable OSS Partnerships.

Third-party Packages in Sanity Studio V2

November 15, 2022
To get around our "modern language features" issue, we can tweak the Sanity Webpack configuration so that it uses babel to transpile the library files for our third-party libraries that are causing us problems.