# raptor-loader

> Module to support lazy loading of JavaScript and CSS resources

Latest version **1.0.5** (published 2016-02-10) · Apache License v2.0 license · 0 weekly downloads

## Install

```sh
npm install raptor-loader
pnpm add raptor-loader
yarn add raptor-loader
bun add raptor-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2016-02-10 |
| First published | 2014-03-13 |
| Weekly downloads | 0 |
| License | Apache License v2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Patrick Steele-Idem |
| Maintainers | pnidem, philidem |

## Links

- npm: https://www.npmjs.com/package/raptor-loader
- Repository: https://github.com/raptorjs/raptor-loader
- Homepage: https://github.com/raptorjs/raptor-loader#readme
- Issues: https://github.com/raptorjs/raptor-loader/issues
- npm.io page: https://npm.io/package/raptor-loader

## Dependencies (2)

- [events](https://npm.io/package/events.md) ^1.0.2
- [raptor-util](https://npm.io/package/raptor-util.md) ^1.0.0

## Recent versions

- 1.0.5 (latest) — 2016-02-10
- 1.0.4 — 2016-01-06
- 1.0.3 — 2014-10-08
- 1.0.2 — 2014-09-22
- 1.0.2-beta — 2014-09-18
- 1.0.1-beta — 2014-09-04
- 1.0.0-beta — 2014-09-04
- 0.1.2-beta — 2014-08-29
- 0.1.1-beta — 2014-03-13
- 0.1.0-beta — 2014-03-13

## README

lasso-loader
============

This module provides functionality to asynchronously load JavaScript and CSS resources in any web browser. It's used by Lasso.js to support lazily loading resources, but it can also be used independently of Lasso.js.

NOTE: All resources are loaded in parallel.

# Usage

```javascript
var lassoLoader = require('lasso-loader');

lassoLoader.load({
        js: [
            'http://foo.com/static/foo.js',
            'http://foo.com/static/bar.js'
        ],
        css: [
            'http://foo.com/static/foo.css',
            'http://foo.com/static/bar.css'
        ]
    },
    function(err) {
        if (err) {
            // Something went wrong
        } else {
            // All resources successfully loaded!
        }
    });
```

---
_Source: https://npm.io/package/raptor-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
