Add a pre-loading screen cover

This matches the loader color and exists to prevent a flash of unstyled
content when the page first loads and JS has not yet run.
This commit is contained in:
valadaptive
2023-12-14 22:05:16 -05:00
parent 332ab81524
commit 7897206cf8
3 changed files with 5 additions and 3 deletions

View File

@ -266,8 +266,9 @@ export {
countOccurrences,
};
// Cohee: Uncomment when we decide to use loader
showLoader();
// Yoink preloader entirely; it only exists to cover up unstyled content while loading JS
document.getElementById('preloader').remove();
// Allow target="_blank" in links
DOMPurify.addHook('afterSanitizeAttributes', function (node) {