steveklabnik / doxidize

Amazing documentation tooling for Rust
https://steveklabnik.github.io/doxidize/
Apache License 2.0
151 stars 8 forks source link

Flash of unstyled content when rendering code #74

Open mgattozzi opened 6 years ago

mgattozzi commented 6 years ago

Going to this page shows the code briefly not colored https://steveklabnik.github.io/doxidize/examples/simple-cli.html Then it gets rendered with coloring after a brief load.

mgattozzi commented 6 years ago

Related to #73 but unsure if it's the same issue or something else. This is just what I noticed when doing a cursory look through identifying glaring issues before the Open Source release.

steveklabnik commented 6 years ago

Yeah they're probably unrelated; the code is styled by highlight.js.

mgattozzi commented 6 years ago

I think I had a similar issue with my site at some point. I'll dig up how I fixed it when I can

mgattozzi commented 6 years ago

@steveklabnik did #102 not fix this?

manuel-woelker commented 6 years ago

Tried to reproduce with latest master (8993034ed414ee4b4af2234f6f3c7e9fb09c0c06), but it seems to be fixed.

Seems like https://steveklabnik.github.io does not have the fix from #102 applied yet.

brennie commented 6 years ago

FWIW, this is also happening for me on pages without (AFAIK) code is rendered, such as https://steveklabnik.github.io/doxidize/status.html