
🍿 Minor Changes
-
#9090
c87223c21Thanks @martrapp! - Take full control over the behavior of view transitions!Three new events now complement the existing
astro:after-swapandastro:page-loadevents:astro: before - preparation; // Control how the DOM and other resources of the target page are loadedastro: after - preparation; // Last changes before taking off? Remove that loading indicator? Here you go!astro: before - swap; // Control how the DOM is updated to match the new pageThe
astro:before-*events allow you to change properties and strategies of the view transition implementation. Theastro:after-*events are notifications that a phase is complete. Head over to docs to see the full view transitions lifecycle including these new events! -
#9092
0ea4bd47eThanks @smitbarmase! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, thetapstrategy will be used. -
#9166
cba6cf32dThanks @matthewp! - The Picture component is no longer experimentalThe
<Picture />component, part ofastro:assets, has exited experimental status and is now recommended for use. There are no code changes to the component, and no upgrade to your project is necessary.This is only a change in documentation/recommendation. If you were waiting to use the
<Picture />component until it had exited the experimental stage, wait no more! -
#9092
0ea4bd47eThanks @smitbarmase! - Adds aignoreSlowConnectionoption to theprefetch()API to prefetch even on data saver mode or slow connection.