Lazy load the js

Open
#286 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, jupyter

Research direction

Compare the lazy-loading approach in ipycytoscape pull request 222, then inspect ipympl's js/src/index.js and its package.json version handling. Determine how widgetExports can be loaded lazily without breaking version access; done means the JupyterLab splash screen can appear sooner while the widget still initializes correctly.

Written by the indexing model from the issue text.

Description

Describe the issue

I don't think that the js is loaded lazily which increases the time until the jlab splash screen shows up.

Proposed Solution

Lazy load the widgetExports similar to https://github.com/QuantStack/ipycytoscape/pull/222

Though this may be complicated by the reading of package.json for the version? https://github.com/matplotlib/ipympl/blob/3a75b2bbab58bf5748c87c96c05e79e6545f64e0/js/src/index.js#L4

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matplotlib/ipympl

All issues in matplotlib/ipympl

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.