Skip to content

Preload stylesheets #109

@daun

Description

@daun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions