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

HTML exports: load image data with separate requests #2543

Open
fonsp opened this issue Apr 26, 2023 · 0 comments
Open

HTML exports: load image data with separate requests #2543

fonsp opened this issue Apr 26, 2023 · 0 comments
Labels
enhancement New feature or request frontend Concerning the HTML editor HTTP/WS The connection between backend and frontend performance publishing Notebooks as static documents on the web

Comments

@fonsp
Copy link
Owner

fonsp commented Apr 26, 2023

Website like this one load quite slow:

https://computationalthinking.mit.edu/Fall22/images_abstractions/seamcarving/

Because the statefile contains data for lots of images.

A normal website would first load the page (containing <img> tags), render it, and then start loading images and display then dynamically.

We could achieve the same effect if we split the statefile in multiple parts, specifically, if we first load the statefile without large image data, and then load those later. I think the cleanest way to achieve this is:

  • allow published data (💁 API to make objects available inside JS #1124) to be requested from a separate file. when a cell renders, it will first request all of its published data if necessary, and then render
  • for the image mimes, put the data in a published object and link to it. Ideally, the image dimensions are instantly available, to avoid vertical shifts while loading the images.

With this approach, we would also really improve performance for notebooks that have a lot of plots with #1124, like PlutoVista.jl!

@fonsp fonsp added frontend Concerning the HTML editor HTTP/WS The connection between backend and frontend performance enhancement New feature or request labels Apr 26, 2023
@fonsp fonsp added the publishing Notebooks as static documents on the web label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Concerning the HTML editor HTTP/WS The connection between backend and frontend performance publishing Notebooks as static documents on the web
Projects
None yet
Development

No branches or pull requests

1 participant