window-load

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i window-load

Weekly Downloads

11,852

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker