mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-14 05:41:22 +00:00
Add support for splash screens during loading
Fixes #3417 Addresses some of the requirements discussed in #2254
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user