1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/static/colortheme/README.md

6 lines
374 B
Markdown
Raw Normal View History

It would be nice if colortheme.ts could be a part of the regular bundle.
But it needs to load as early as possible and blocking to avoid having white flashes in the dark theme.
Even using it in a seperate module that is loaded in the header doesn't work as modules are always deferred.
That's why it is built to a separate JS file by esbuild and hardcoded into the header.