pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
557 stars 299 forks source link

Pages displayed quickly with the light theme before being displayed with the dark theme #1816

Closed dbitouze closed 1 month ago

dbitouze commented 1 month ago

With PST 15.3rc1, the pages are displayed quickly with the light theme before being displayed with the dark theme:

https://github.com/pydata/pydata-sphinx-theme/assets/1032633/9941363f-fc13-43df-9b7d-39212f2a9740

dbitouze commented 1 month ago

Still happens with 0.15.3dev0.

trallard commented 1 month ago

Hey @dbitouze I cannot reproduce this locally with the Pydata Sphinx theme or other documentation sites using the theme. Could you try using the latest release of the theme? It should be 0.15.3 (released yesterday).

drammock commented 1 month ago

I've seen something similar before but it only happens to me when viewing local builds (in @dbitouze's video the URL is a local path). I think it's something to do with the browser treating each page as a separate domain with its own data store, rather than having a single data store for all pages in the domain. If that's right, I doubt we can do anything to fix it.

trallard commented 1 month ago

That checks! I did not even realise it was a local one (you've got eagle eyes @drammock )

dbitouze commented 1 month ago

In fact, the problem arose for a local version of our FAQ: sorry for not clarifying this point, which I considered irrelevant.

Now all's well for the [online version of this FAQ] (https://faq.gutenberg-asso.fr/index.html)!

Thank you very much for your work!