Replies: 1 comment
-
I don't think that's currently possible when using the Astro integration. When setting up swup manually, you can enable the persistAssets option of the Head Plugin. Feel free to open an issue on the Astro integration repo so we can keep track of this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe your problem 🧐
Hi 👋 ,my project uses astro and swup and oh-my-live2d.This library generates a
<style id="oml2d-global-style"></style>
based on the user's configuration and inserts it into the<head>
through javascript after the first load. But after I switched pages(these pages have the same<head>
...), this<style>
was lost.This is my @swup/astro configuration :
What is your question? 🙋♀️
I tried to copy the
<style>
(dynamically added in the<head>
through javascript) and write it directly in the<head>
, and it worked as expected, but it's hard to maintain.I've tried head-plugin, but it didn't solve the problem, perhaps because of thedynamic addition
So, how can I keep the
<style>
mentioned aboveURL to minimal reproduction 🔗
https://stackblitz.com/edit/github-kvqyqk
Checked all these? 📚
Beta Was this translation helpful? Give feedback.
All reactions