docs
docs copied to clipboard
Script Tag CDNs with View Transitions
📋 Explain your issue
After learning from Simon Grimm about Capacitor to turn Astro into a native/web app, I've tried implementing Ionic to utilize native styling. The current compromise is that without View Transitions, the styling works fine while with View Transitions on, the CDN doesn't run again and it doesn't appear there is some Astro directive to rerun CDNs. I've reached out for support at Ionic about re-running their scripts to use the Astro "after-swap" directive but wanted to see if Astro had things in place to rerun CDNs that didn't need to be explicitly written out in a new event listener. The current documentation for Ionic's vanilla Javascript is very vague which makes it hard to re-initialize the Ionic scripts (at least as far as I've seen). Hopefully, this also gets Astro to move into PWA or native apps soon.