alshedivat / al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics
https://alshedivat.github.io/al-folio/
MIT License
11.34k stars 11.28k forks source link

fix: Jupyter notebook sometimes not changing to dark theme on first load #2693

Closed Charlie-XIAO closed 2 months ago

Charlie-XIAO commented 2 months ago

Fixes #1545.

I was guessing that maybe the Jupyter notebook iframes are already loaded before the document is ready (sometimes), but not 100% sure.

george-gca commented 2 months ago

Just tested your solution and it still doesn't fix it.

Charlie-XIAO commented 2 months ago

That's strange... I could reproduce stably yesterday but not today, there might be some more complicated mechanism in there 🤔 I'm closing it for now.