mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
perf: hide unused elements for better DOM performance
This commit is contained in:
@@ -700,13 +700,7 @@ export function tryLoad() {
|
|||||||
|
|
||||||
updateIframesWithDarkMode()
|
updateIframesWithDarkMode()
|
||||||
// Waits for page to call on load, run scripts
|
// Waits for page to call on load, run scripts
|
||||||
document.addEventListener(
|
|
||||||
'load',
|
|
||||||
function () {
|
|
||||||
removeThemeTagsFromNotices()
|
removeThemeTagsFromNotices()
|
||||||
},
|
|
||||||
true,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ChangeMenuItemPositions(storage: any) {
|
function ChangeMenuItemPositions(storage: any) {
|
||||||
@@ -795,7 +789,6 @@ function main() {
|
|||||||
tryLoad()
|
tryLoad()
|
||||||
} else {
|
} else {
|
||||||
handleDisabled()
|
handleDisabled()
|
||||||
window.addEventListener('load', handleDisabled)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@
|
|||||||
transform: translateX(-320px);
|
transform: translateX(-320px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu li.hasChildren:not(.active) li .sub {
|
||||||
|
display: none; // improves performance
|
||||||
|
}
|
||||||
|
|
||||||
.sub .sub {
|
.sub .sub {
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
|
|||||||
Reference in New Issue
Block a user