Optimize search

- Optimize search result insertion, should be 5 to 7 times fater than before
- Fix a memory leak when stylesheets are being inserted into the page
This commit is contained in:
KatieFrogs
2022-02-27 18:49:56 +03:00
parent 9ceecd90d0
commit 07294857fa
2 changed files with 46 additions and 31 deletions

View File

@@ -82,6 +82,8 @@
border: 0.3em black solid;
position: relative;
--course-width: min(3em, calc(7 * var(--vmin, 1vmin)));
content-visibility: auto;
contain-intrinsic-size: 1px 3.2em;
}
.song-search-result::before {