Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (16 loc) · 375 Bytes

Readme.md

File metadata and controls

28 lines (16 loc) · 375 Bytes

load

Callback when the document has loaded.

Installation

$ component install ianstormtaylor/on-load

Example

var onLoad = require('on-load');

onLoad(function () {
  console.log('load');
});

API

onLoad(handler)

Call a handler when the document is loaded, calling on next tick if the document is already loaded.

License

MIT