#is there a way to make it so the props={...} for my island is loaded from a seperate file
3 messages · Page 1 of 1 (latest)
Hi @copper dove. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hmm, I don't know enough to give you a confident answer yet. Your question seems to be about excluding certain content from your index.html file. However, without more context, it's difficult to provide a specific solution.
Astro provides a lot of flexibility in how you structure your project and what gets included in your final build. For example, Astro components (.astro files) render to HTML either at build-time or on-demand using server-side rendering (SSR), and all JavaScript code inside of your component frontmatter will be stripped from the final page sent to your users’ browsers (source (https://docs.astro.build/en/core-concepts/astro-components/)).
If you're looking to exclude certain JavaScript from your final build, Astro's approach is to ship zero JavaScript to the browser by default, and only send down JavaScript for any interactive parts of your page (source (https://astro.build/blog/astro-1-beta-release/)).