mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user