Basket.js
A script and resource loader for caching & loading files
...The library provides a higher-level API where you describe which scripts to load, along with metadata like expiration time, a unique version string, or whether to execute the script immediately. Modern versions expose a Promise-based interface and support modular usage via ES Modules or CommonJS, so you can integrate it into contemporary build setups and bundlers. It also offers options like skipCache (force bypassing cache), live (always fetch fresh), and custom handlers for different content types beyond JavaScript.