on click on device ready in jquery code example Example: document ready $( document ).ready(function() { console.log( "ready!" ); });