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

ianstormtaylor/on-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Callback when the document has loaded.

Resources

Stars

Watchers

Forks

Packages

No packages published