Skip to content

Conversation

@andrii-i
Copy link
Contributor

@andrii-i andrii-i commented Jun 9, 2023

Add an empty splash screen on notebook launch to avoid a flash of unstyled content while custom CSS is loading.

Fixes #6790.

Without this PR:

(slowed down)
without_new

without_dark

With this PR:

(slowed down)
with_light_new

with_dark

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2023

Binder 👈 Launch a Binder on branch andrii-i/notebook/add_blank_splashscreen

@andrii-i andrii-i added the bug label Jun 9, 2023
@andrii-i andrii-i added this to the 7.0 milestone Jun 9, 2023
@andrii-i andrii-i marked this pull request as ready for review June 9, 2023 02:26
activate: (app: JupyterFrontEnd) => {
const { restored } = app;
const splash = document.createElement('div');
splash.style.position = 'absolute';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styling has to be inline or it does not load through on time

@andrii-i andrii-i requested a review from jtpio June 9, 2023 02:26
Copy link
Member

@jtpio jtpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jtpio jtpio merged commit bdcadda into jupyter:main Jun 9, 2023
@andrii-i
Copy link
Contributor Author

andrii-i commented Jun 9, 2023

Thank you @jtpio

@andrii-i andrii-i deleted the add_blank_splashscreen branch June 9, 2023 06:05
jitseniesen added a commit to jitseniesen/spyder-notebook that referenced this pull request Jun 29, 2023
jitseniesen added a commit to jitseniesen/spyder-notebook that referenced this pull request Jul 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flash of unstyled content when loading pages

2 participants