# script-onload

> Call a function when a script loads.

Latest version **1.0.2** (published 2015-05-15) · 0 weekly downloads

## Install

```sh
npm install script-onload
pnpm add script-onload
yarn add script-onload
bun add script-onload
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-05-15 |
| First published | 2015-05-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | ndhoule |

## Links

- npm: https://www.npmjs.com/package/script-onload
- Repository: https://github.com/segmentio/script-onload
- Homepage: https://github.com/segmentio/script-onload#readme
- Issues: https://github.com/segmentio/script-onload/issues
- npm.io page: https://npm.io/package/script-onload

## Recent versions

- 1.0.2 (latest) — 2015-05-15

## README

# script-onload

> **Note**  
> Segment has paused maintenance on this project, but may return it to an active status in the future. Issues and pull requests from external contributors are not being considered, although internal contributions may appear from time to time. The project remains available under its open source license for anyone to use.

  Invoke `fn(err)` when the given `<script>` loads.

## Installation

```bash
$ component install segmentio/script-onload
```

## API

#### onload(el, fn)

## License

  (MIT)

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