$script.js is a compact, asynchronous JavaScript loader and dependency manager designed for browser environments. Its primary function is to load JavaScript resources on demand without blocking the rendering of other assets like CSS and images, a common issue with traditional `<script>` tags. The library, currently at version 2.5.9, focuses on simplifying dependency management for complex web applications by allowing scripts to be loaded in parallel and executed once their dependencies are met, using a unique `ready` callback mechanism. It differentiates itself through its lightweight footprint and its ability to manage intricate load sequences using named bundles or individual script IDs, making it suitable for older browser environments (IE6+, Opera10+). However, its release cadence appears to be very slow, with the last known stable version 2.5.9 released quite some time ago, indicating a maintenance or effectively abandoned status given the prevalence of modern bundlers.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
$script.js operates by exposing a global `$script` object. It is typically loaded via a `<script>` tag in HTML. It does not use standard CommonJS `require()` or ES Modules `import` syntax.
`$script.ready` is a method on the global `$script` object used to register callbacks that execute once specified script bundles or individual scripts are loaded and ready. It's the primary mechanism for dependency fulfillment.
`$script.path` is a global configuration method used to set a base path for all subsequent relative script loads. It must be called directly on the global `$script` object. To circumvent it for a single script, use `$script.get()`.
Demonstrates loading multiple scripts, grouping them into a bundle, setting a base path, and using the `$script.ready` callback for deferred execution based on named dependencies.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.