1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/static/colortheme
2023-07-09 20:18:09 +02:00
..
colortheme.js fix color theme by loading regular js in the head 2023-07-09 20:18:09 +02:00
colortheme.js.map fix color theme by loading regular js in the head 2023-07-09 20:18:09 +02:00
colortheme.ts fix color theme by loading regular js in the head 2023-07-09 20:18:09 +02:00
README.md fix color theme by loading regular js in the head 2023-07-09 20:18:09 +02:00

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.