Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate the deferred plugins after shell restore #14610

Merged
merged 7 commits into from Aug 16, 2023

Conversation

brichet
Copy link
Contributor

@brichet brichet commented May 29, 2023

This PR improves pageload time by deferring the activation of huge extensions.

After the shell restore, activates the plugins that have been deferred from:

References

Fixes #14576

Related to jupyterlab/lumino#588

Code changes

The changes are in JupyterLab class.

User-facing changes

Activation of a plugin containing a 5s sleep:

CURRENT LOADING DEFERRING ACTIVATION

Backwards-incompatible changes

This is currently backward compatible but I used // @ts-ignore to avoid error at compilation.
There may be better implementation for it.

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Thanks @brichet

I have some comments and I think we should wait for a new release of lumino with the related change. As the behavior of deferred extensions is gonna changed, I would prefer to have it in a new minor version.

packages/application/src/lab.ts Outdated Show resolved Hide resolved
packages/application/src/lab.ts Outdated Show resolved Hide resolved
@brichet
Copy link
Contributor Author

brichet commented Jun 13, 2023

Test failure does not appear to be linked to this PR.

@fcollonval
Copy link
Member

Thanks @brichet merging this one now.

@fcollonval fcollonval merged commit 0ec915d into jupyterlab:main Aug 16, 2023
75 of 77 checks passed
@brichet brichet deleted the deferred_plugins branch August 16, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defer loading of extensions
4 participants