npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bd-load

v2.0.2

Published

A small and fast AMD loader for building modern applications on node.js and the browser.

Downloads

4

Readme

bd-load

The Backdraft AMD loader by ALTOVISO.

Build status Dependencies devDependencies

The fastest and smallest AMD loader ever built

Features

  • Extremely compact--less than 500 lines of code

  • Algorithms optimized to theoretical minimum time complexity possible

  • Executes on node.js and in the browser

  • Includes the features required to construct large applications

  • Does not include unnecessary, outdated, and/or naive features present in other loaders

  • Fully leverages JS6

Why Another Version of bd-load?

Version 1.x of bd-load was rolled into Dojo back in 2011 and is probably the second-most used AMD loader next to Requirejs. It is still the most capable AMD loader today and contains many features and capabilities not available in other loaders. It is also one of the fastest and smallest.

Although it was important to add tons of capabilities and features into the loader back six years ago for historical and marketing reasons, much of that machinery was never needed to build optimal applications.

###Most AMD loaders either solve problems we don't care about--and are therefore bloated--or are poorly built...or both!

Furthermore, AMD loaders bring some configuration capability not currently available with ES6 modules, so they are still relevant.

###bd-load implements exactly the features needed to build modern applications and leverages ES6 to express the fastest and smallest AMD loader ever built.

If you want to write programs that have a loader 5X bigger, slower, and does foolish things like scans module text for require statements, bd-load is not the loader for you.

If you want to load AMD- or UMD-compliant modules in either the browser or node while incurring the minimum cost in time and space, then bd-load is likely the best option.

Installation

With npm:

npm install bd-load

With yarn:

yarn add bd-load

With bower:

bower install --save bd-load

History

Though not common knowledge, bd-load has been in wide-scale continuous use with Dojo since 2011. The project was initially made public in late 2010 and rapidly incorporated into the Dojo Toolkit culminating in release 1.5 of Dojo.

The v1.x loader is extremely advanced and implements the original Dojo synchronous and cross-domain APIs as well as the AMD API. It includes many still-novel features, and can be built exemplifying one of the smallest and fastest AMD-compatible loaders available using the Dojo build system (also originally an ALTOVISO project).

From mid 2011, almost all maintenance of the backdraft loader took place within the Dojo project. In late 2012, a prototype space-optimized version of the loader (bdload-so.js) was constructed.

Since JS6 includes several features that make a smaller loader possible, and further since the typical loaders available are packed full of cruft, outdated APIs, and naive features, ALTOVISO built and released v2.x of bd-load in early 2017.

Status

The loader is currently being used in commercial projects. It includes tests that prove most of the AMD specification. Currently the plugin API is not available, and, since we find that API unnecessary, there are no plans to add it.

License

bd-load is free and open source software available under a BSD-3-Clause license.