Skip to content

Executing Astro component scripts #856

Answered by daun
kooalab asked this question in Help
Jan 2, 2024 · 1 comments · 12 replies
Discussion options

You must be logged in to vote

To insert new scripts and run them as well, you can combine Head Plugin and Scripts Plugin. That's how the official Astro integration does it, and it's working great. Quoting the docs on Common Issues:

Use the Head Plugin to insert new scripts into the head
Use the Scripts Plugin to run existing and new scripts in head or body

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@daun
Comment options

@kooalab
Comment options

@daun
Comment options

@kooalab
Comment options

@kooalab
Comment options

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