Skip to content
Discussion options

You must be logged in to vote

Update: the Head Plugin now supports waiting for new stylesheets to load before showing the next page.

Previous answer for swup 2:

Swup doesn't automatically update the head tags, so your new stylesheets won't be loaded. The head plugin will update the tags for you and add the new stylesheets, but it won't wait for the stylesheets to load before showing the new page. So the best option is to use a single stylesheet for the whole page to avoid the flash of unstyled content.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@wallythewebdev
Comment options

@daun
Comment options

daun Jan 4, 2023
Maintainer

@daun
Comment options

daun Jan 4, 2023
Maintainer

@wallythewebdev
Comment options

Answer selected by daun
Comment options

You must be logged in to vote
1 reply
@wallythewebdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
needs test case Please create a test case using our template: https://codesandbox.io/s/swup-test-case-template-6ci5s
3 participants
Converted from issue

This discussion was converted from issue #570 on January 04, 2023 10:55.