Switching dark/light themes is slow

Open
#3,567 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
frontend

Research direction

Reproduce the delay on https://docs.rs/ by changing the GNOME preference with gsettings set org.gnome.desktop.interface color-scheme, then compare it with an actual docs page such as https://docs.rs/glob/latest/glob/. Trace the theme-preference handling and identify why the homepage can take up to 10 seconds or fail to update; done means switching is consistently immediate.

Written by the indexing model from the issue text.

Description

When toggling the system preference[^1] for light/dark, the colors on https://docs.rs/ take any where from 0 to 10 seconds to switch (sometimes not at all if I muck around with it too much), compared to instant on an actual docs page, e.g. https://docs.rs/glob/latest/glob/.

[^1]: via gsettings set org.gnome.desktop.interface color-scheme

Dominant language
Rust
Stars
1.2k
Forks
235
Avg merge
11h 56m
Merged PRs (30d)
78

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/docs.rs

All issues in rust-lang/docs.rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.