Add support for splash screens during loading

Fixes #3417

Addresses some of the requirements discussed in #2254
This commit is contained in:
Jermolene
2018-09-27 09:47:55 +01:00
parent 806df86434
commit cfb2d7c9c8
11 changed files with 209 additions and 11 deletions
+7
View File
@@ -59,6 +59,13 @@ exports.startup = function() {
$tw.pageWidgetNode.render($tw.pageContainer,null);
$tw.hooks.invokeHook("th-page-refreshed");
})();
// Remove any splash screen elements
var removeList = document.querySelectorAll(".tc-remove-when-wiki-loaded");
$tw.utils.each(removeList,function(removeItem) {
if(removeItem.parentNode) {
removeItem.parentNode.removeChild(removeItem);
}
});
// Prepare refresh mechanism
var deferredChanges = Object.create(null),
timerId;