perf: optimize katex config, implement async css loading for katex, improve scrollbar and lightbox loading logic

This commit is contained in:
radishzzz 2025-05-08 18:13:15 +01:00
parent 625879b061
commit 979f36a796
6 changed files with 66 additions and 60 deletions

View file

@ -11,7 +11,7 @@ function setupGithubCards() {
observer.unobserve(entry.target)
}
})
}, { rootMargin: '200px' })
}, { rootMargin: '400px' })
githubCards.forEach(card => observer.observe(card))
}