ready Event

This event will fire once the Intel XDK JavaScript bridge library is completely loaded

Description:

This event will fire once the Intel XDK JavaScript bridge library is completey loaded. Be sure to allow this event to fire before attempting any Intel XDK JavaScript Bridge API commands. In order to load the Intel XDK JavaScript library, be sure to include the following JavaScript library in your HTML file.

Example:


document.addEventListener("intel.xdk.device.ready",function(){
        //lock the application in portrait orientation
        intel.xdk.device.setRotateOrientation("portrait");
    intel.xdk.device.setAutoRotate(false);

    //hide splash screen
    intel.xdk.device.hideSplashScreen();        
},false);   
                        
For more complete information about compiler optimizations, see our Optimization Notice.