Skip to content

Feature/improve css startup#165

Merged
henryiii merged 3 commits intoscikit-hep:masterfrom
KubaO:feature/improve-css-startup
Dec 7, 2021
Merged

Feature/improve css startup#165
henryiii merged 3 commits intoscikit-hep:masterfrom
KubaO:feature/improve-css-startup

Conversation

@KubaO
Copy link
Contributor

@KubaO KubaO commented Dec 5, 2021

Improve startup rendering and get rid of flicker in some browsers. That was caused by using a default stylesheet and only switching it after it was loaded. Instead, we let the browser's renderer do the right thing.

@eduardo-rodrigues
Copy link
Member

Thank you your for contribution.

I'm no expert but this looks reasonable. What do you think @henryiii and/or @matthewfeickert?

@KubaO, do you happen to have a couple of snapshots of the issues you found and the updated version with them fixed?

@KubaO
Copy link
Contributor Author

KubaO commented Dec 6, 2021 via email

@eduardo-rodrigues
Copy link
Member

No worries, I understand that it's not obvious to catch the temporary status of the page. Forget about it.

Am approving and will just wait for an extra pair of eyes. Again thank you for the contribution.

@henryiii
Copy link
Member

henryiii commented Dec 6, 2021

I’ll try to get this submitted upstream and will then drop another PR that will remove the head.html include.

I tried to get the current js version submitted upstream in January (just-the-docs/just-the-docs#560) and was blocked by this very issue (and I think it was also Edge that was the most obvious).

Does this switch if you change the light/dark scheme after loading the page? If it doesn't, you could just remove the final line of the js instead of the whole script - that should default correctly, and support changes.

@KubaO
Copy link
Contributor Author

KubaO commented Dec 7, 2021 via email

@henryiii
Copy link
Member

henryiii commented Dec 7, 2021

Would you like me to update my PR with this version? I'm happy to have you directly contribute if you'd rather. For us, let's merge this and see what it looks like live. :)

@henryiii henryiii merged commit 4822ef2 into scikit-hep:master Dec 7, 2021
@KubaO
Copy link
Contributor Author

KubaO commented Dec 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants