Astro Notes Code in the frontmatter is only executed on the server (in SSR) and once (at build time, with SSG). For client side interactivity, use <script> tag instead. Client Side Scripts