Skip to content

Reduce size of installed packages, initial load impact #63

@bollwyvl

Description

@bollwyvl

Elevator Pitch

Reduce the size of required installed packages.

Motivation

While downloading the artifacts at install time is easily cached, etc. the files are still very large, and probably are still not fully optimized for initial page load (despite laziness)

Design Ideas

  • use the existing lab MATHJAX_URL, either by using whatever's there, or adding a hard dependency on jupyter_server_mathjax and don't ship another mathjax
  • split out the labextensions as a (set of multiple) separate installable package(s)
  • split out the kernel-side ipywidgets as a package
    • particularly in JupyterLite (where the widgets haven't really been tested) the hit for downloading and installing the (useless) labextensions into the WASM runtime is going to be very real
  • split out the full templates (and customized load) as a separate package
    • these are the worst offenders, with individual XML files that are a couple megabytes
    • keeping the full shapes available on drawio around is probably important, as missing shapes look... bad
  • see if there's any way to make the whl not include two copies of the files

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions