From fca1ef4d369359637dc76da60210c8b04214e34d Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Jun 2017 10:49:35 +0200 Subject: [PATCH 1/7] hide unstyled content until the loading screen is displayed --- www/code/inner.html | 3 ++- www/code/inner.js | 5 ++++- www/drive/inner.html | 2 +- www/drive/main.js | 1 + www/file/inner.html | 3 ++- www/file/inner.js | 5 ++++- www/slide/inner.html | 4 ++-- www/slide/inner.js | 7 +++++-- 8 files changed, 21 insertions(+), 9 deletions(-) diff --git a/www/code/inner.html b/www/code/inner.html index bebe745e6..374b920e9 100644 --- a/www/code/inner.html +++ b/www/code/inner.html @@ -31,8 +31,9 @@ + - +
diff --git a/www/code/inner.js b/www/code/inner.js index be2697294..d2dac0968 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -1,5 +1,8 @@ define([ + 'jquery', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css', 'less!/code/code.less', 'less!/customize/src/less/toolbar.less', -], function () {}); +], function ($) { + $('.loading-hidden').removeClass('loading-hidden'); +}); diff --git a/www/drive/inner.html b/www/drive/inner.html index eb2014e89..5bde9c5fc 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -5,7 +5,7 @@ - +
diff --git a/www/drive/main.js b/www/drive/main.js index b1d430eaa..6b8f6ff32 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -2774,6 +2774,7 @@ define([ Cryptpad.onDisplayNameChanged(setName); }; var onReady = function () { + APP.$iframe.find('body').css('display', ''); module.files = proxy; if (!proxy.drive || typeof(proxy.drive) !== 'object') { proxy.drive = {}; } migrateAnonDrive(proxy, function () { diff --git a/www/file/inner.html b/www/file/inner.html index 8adb80b08..5f0a1bd58 100644 --- a/www/file/inner.html +++ b/www/file/inner.html @@ -4,8 +4,9 @@ + - +