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

Preload stylesheets #109

Open
1 of 3 tasks
daun opened this issue Oct 9, 2023 · 0 comments
Open
1 of 3 tasks

Preload stylesheets #109

daun opened this issue Oct 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@daun
Copy link
Member

daun commented Oct 9, 2023

Describe the proposed solution

  • Parse the head of preloaded pages for stylesheets and prefetch them
  • Stylesheets are always render-blocking when in the head, so it makes sense to prefetch them
  • Should use native rel=prefetch markup as swup has no concept of an asset cache

Alternatives considered

  • Implement it myself in the page:preload hook

How important is this feature to you?

  • Nice to have
  • Would make my life a lot easier
  • I cannot use swup without it
@daun daun changed the title Feature: preload stylesheets Preload stylesheets Feb 20, 2024
@daun daun added the enhancement New feature or request label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant