# load-external

> Easily load external js and css files (cross-browser).

Latest version **1.0.2** (published 2017-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install load-external
pnpm add load-external
yarn add load-external
bun add load-external
```

## 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.2 |
| Published | 2017-02-15 |
| First published | 2016-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dallas Read |
| Maintainers | dallasread |
| Keywords | load, external |

## Links

- npm: https://www.npmjs.com/package/load-external
- Repository: https://github.com/dallasread/load-external
- Homepage: https://github.com/dallasread/load-external#readme
- Issues: https://github.com/dallasread/load-external/issues
- npm.io page: https://npm.io/package/load-external

## Recent versions

- 1.0.2 (latest) — 2017-02-15
- 1.0.1 — 2016-07-06
- 1.0.0 — 2016-01-11

## README

Easily load external js and css files (cross-browser).

```
var loadExternal = require('load-external');

loadExternal('https://js.stripe.com/v2/', function() {
    // alert('Stripe is loaded!');
});

loadExternal('https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css', function() {
    // alert('CSS Reset is loaded & applied!');
});
```

LoadExternal does its best to determine the type of file you wish to load, but you can also explicitly define the mode (currently accepts js or css):

```
loadExternal('https://js.stripe.com/v2/', 'js', function() {
    // alert('Stripe is loaded!');
});
```

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