diff --git a/build/browser/app.js b/build/browser/app.js index cb7afe27..05223e0d 100644 --- a/build/browser/app.js +++ b/build/browser/app.js @@ -80,7 +80,14 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState this.restart(); - // We're ready to unhide the application now + // We manually add `style="display: none;"` to + // and unset it here instead of using ngCloak since + // the latter takes effect as soon as the Angular + // library was loaded, but doesn't always mean that + // the application is ready, causing the application + // to be shown in an unitialized state for some milliseconds. + // Here in the controller, we are sure things are + // completely up and running. document.querySelector('body').style.display = 'initial'; this.selectImage = function() { diff --git a/lib/browser/app.js b/lib/browser/app.js index 7636928a..366c2f37 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -79,7 +79,14 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState this.restart(); - // We're ready to unhide the application now + // We manually add `style="display: none;"` to + // and unset it here instead of using ngCloak since + // the latter takes effect as soon as the Angular + // library was loaded, but doesn't always mean that + // the application is ready, causing the application + // to be shown in an unitialized state for some milliseconds. + // Here in the controller, we are sure things are + // completely up and running. document.querySelector('body').style.display = 'initial'; this.selectImage = function() {