Patch Changes
-
#7782
0f677c009
Thanks @bluwy! - Refactor Astro rendering to write results directly. This improves the rendering performance for all Astro files. -
#7786
188eeddd4
Thanks @matthewp! - Execute scripts when navigating to a new page.When navigating to an new page with client-side navigation, scripts are executed (and re-executed) so that any new scripts on the incoming page are run and the DOM can be updated.
However,
type=module
scripts never re-execute in Astro, and will not do so in client-side routing. To support cases where you want to modify the DOM, a newastro:load
event listener been added:document.addEventListener('astro:load', () => { updateTheDOMSomehow(); });