npm.io
1.0.0 • Published 10 years ago

window-load

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0
Stars
2

window-load Build Status

Call a callback on window load

Install

$ npm install --save window-load

Usage

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

Keywords