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

embed_display: await inner scripts to finish #2368

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Nov 14, 2022

Fix JuliaPluto/PlutoUI.jl#236

After this PR, the <script> element that powers the embed_display will await all embedded <script> elements to finish.

TODO:

  • frontend test would be great but takes some effort
  • I had to use a requestIdleCallback to keep this from getting crazy complicated, which might lead to slower rendering when using lots of embed_display in one cell... needs to be investigated.

@fonsp fonsp added the frontend Concerning the HTML editor label Nov 14, 2022
@fonsp fonsp self-assigned this Nov 14, 2022
@github-actions
Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="embed_display-await-inner-scripts")
julia> using Pluto

@fonsp fonsp added the display & PlutoRunner & AbstractPlutoDingetjes.jl label Nov 15, 2022
@fonsp fonsp marked this pull request as draft November 15, 2022 12:00
@fonsp
Copy link
Owner Author

fonsp commented Nov 15, 2022

Hmpf I tricked myself into thinking that this PR worked because of #1776 , it's not actually working yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display & PlutoRunner & AbstractPlutoDingetjes.jl frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PlutoUI.combine loading issue: Scrubbable(::Matrix) error
1 participant