Skip to content

Load CSS stylesheets of new page #519

Answered by daun
AaykeN asked this question in Help
Discussion options

You must be logged in to vote

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

Previous answer: If you include separate CSS bundles for different subpages, that's to be expected since swup by default won't include stylesheets of the newly loaded page. You can try to bundle the whole site's stylesheet into a single file, that should solve your issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants