# window-load

> Call a callback on window load

Latest version **1.0.0** (published 2015-10-09) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-10-09 |
| First published | 2015-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | window, load, callback |

## Links

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

## Dependencies (2)

- [global](https://npm.io/package/global.md) ~4.3.0
- [next-tick](https://npm.io/package/next-tick.md) ~0.2.2

## Recent versions

- 1.0.0 (latest) — 2015-10-09

## README

# window-load [![Build Status](https://travis-ci.org/bendrucker/window-load.svg?branch=master)](https://travis-ci.org/bendrucker/window-load)

> Call a callback on window load


## Install

```
$ npm install --save window-load
```


## Usage

```js
var onLoad = require('window-load')

onLoad(function () {
  //=> window is loaded  
})
```

## API

#### `onLoad(callback)` -> `undefined`

##### callback

*Required*  
Type: `function`

A callback to call on window load. If window load has already occurred, the callback will be called on the next tick.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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