Skip to content

astro@2.9.3

Compare
Choose a tag to compare
@astrobot-houston astrobot-houston released this 25 Jul 19:18
· 5551 commits to main since this release
db8c040

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 new astro:load event listener been added:

    document.addEventListener('astro:load', () => {
      updateTheDOMSomehow();
    });