-
I'm preparing a documentation with a lot of images and I won't be able to produce alternative versions for a dark background. To solve this, I'm disabling dark mode by injecting custom CSS and JS: .theme-toggle-container {
display: none;
} document.body.setAttribute("data-theme", "light"); The problem is that the custom JS is executed after the "default" code, so the website always blinks dark before turning light. This is not a huge issue, but can be annoying. Is it possible to have my JS code to take precedence over Sphinx/Furo's JS? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See #100
Where are you injecting this? Furo's JS logic is a render-blocking blurb, and you'd need to have your own render-blocking blurb (or remove Furo's defaults) to achieve this. |
Beta Was this translation helpful? Give feedback.
See #100
Where are you injecting this? Furo's JS logic is a render-blocking blurb, and you'd need to have your own render-blocking blurb (or remove Furo's defaults) to achieve this.