perf: hide unused elements for better DOM performance

This commit is contained in:
sethburkart123
2024-06-19 22:09:49 +10:00
parent 533120da7a
commit d21f8f0633
2 changed files with 5 additions and 8 deletions
+1 -8
View File
@@ -700,13 +700,7 @@ export function tryLoad() {
updateIframesWithDarkMode()
// Waits for page to call on load, run scripts
document.addEventListener(
'load',
function () {
removeThemeTagsFromNotices()
},
true,
)
removeThemeTagsFromNotices()
}
function ChangeMenuItemPositions(storage: any) {
@@ -795,7 +789,6 @@ function main() {
tryLoad()
} else {
handleDisabled()
window.addEventListener('load', handleDisabled)
}
}