Skip to content

Some more details for the code block flashing #2614

Open
@StefanSalewski

Description

@StefanSalewski

Problem

In dark themes, code block flash white when page is (re)-loaded.
I reported that a few times in the last months.

Steps

Try with Mozilla or Chromium

Possible Solution(s)

I just noticed, that only editable code blocks are flashing. Initially I thought that older releases of mdbook might not suffer from this issue, but now I think it is just, that when I started with my book, I initially made the example code not editable.

I think, if this is not fixable, I might make the examples in my book non-editable, than it should load smooth.

Notes

I already suggested an option to copy code directly in the Rust playground (a button, that when clicked opens directly the playground with the code block copied in to edit and run). I guess that would be possible, I have seen that somewhere, and that would avoid this issue :-)

And no, no pull request from my side, I am not a web developer. Perhaps AI will be able to provide a PR soon.

Version

latest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions