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

prefetch and prerender editor.html from index.html #1838

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Jan 21, 2022

The editor.js and editor.css prefetches are working well according to devtools, and parcel is handling them correctly (after bundling, they point to the same hashed filename as editor.html does).

The prerender is not showing up in devtools, but I'm guessing that it is working.

A big thing is that we want to prefetch to .woff assets from index.html, but I'm not sure if this PR is achieving that. (Because prefetch is not recursive, and I can't easily inspect prerender.) A problem might be that those fonts are lazy-loaded, so just loading the stylesheets does not trigger loading the font files. Maybe explicit prefetches for all the font files?

@fonsp fonsp added frontend Concerning the HTML editor online deployment About deploying to binder, heroku, self-hosted labels Jan 21, 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="prefetch-editor-from-index")
julia> using Pluto

@fonsp fonsp added the enhancement New feature or request label Jan 21, 2022
@fonsp fonsp merged commit a014642 into main Jan 21, 2022
@fonsp fonsp deleted the prefetch-editor-from-index branch January 21, 2022 14:01
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 online deployment About deploying to binder, heroku, self-hosted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant