function init() {
  var isMobile = AFRAME.utils.device.isMobile();
  if (isMobile) {
    // do stuff
  }
}
// init function is called after onload event
init function is called after onload event
init function is called after onload event
function init() {
  var isMobile = AFRAME.utils.device.isMobile();
  if (isMobile) {
  }
}
function init ( ) { var isMobile = AFRAME . utils . device . isMobile ( ) ; if ( isMobile ) { } }
init function is called after onload event
init function is called after onload event
// do stuff