1.0.0 • Published 8 years ago

cordova-platform-ready v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

cordova-platform-ready

This is a small module that provides a single API for executing code either after Cordova initializes or after the window loads, if running as a webpage.

Usage

function initialize () {
  // This code will be executed when the device is ready or the window loads
}

require('cordova-platform-ready').ready(initialize)

You can also queue up multiple callbacks to be executed:

const cordovaPlatformReady = require('cordova-platform-ready')

cordovaPlatformReady.ready(cb1)
cordovaPlatformReady.ready(cb2)