Check on app startup whether to use document.ready or device ready