Skip to content

Commit

Permalink
Show progress bar earlier during load (#2889)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Apr 9, 2024
1 parent 91b17ff commit 50582a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@

<body class="loading no-MαθJax">
<div style="display: flex; min-height: 100vh;">
<pluto-editor class="fullscreen"></pluto-editor>
<pluto-editor class="fullscreen">
<progress style="filter: grayscale(1)" class="statefile-fetch-progress delete-me-when-live" max="100"></progress>
</pluto-editor>
</div>
</body>

Expand Down
1 change: 1 addition & 0 deletions frontend/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class PlutoEditorComponent extends HTMLElement {
const new_launch_params = Object.fromEntries(Object.entries(launch_params).map(([k, v]) => [k, from_attribute(this, k) ?? v]))
console.log("Launch parameters: ", new_launch_params)

document.querySelector(".delete-me-when-live")?.remove()
render(html`<${EditorLoader} launch_params=${new_launch_params} />`, this)
}
}
Expand Down

0 comments on commit 50582a1

Please sign in to comment.