Minor Changes
-
#9090
c87223c21
Thanks @martrapp! - Take full control over the behavior of view transitions!Three new events now complement the existing
astro:after-swap
andastro:page-load
events:astro: before - preparation; // Control how the DOM and other resources of the target page are loaded astro: 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 page
The
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
0ea4bd47e
Thanks @smitbarmase! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, thetap
strategy will be used. -
#9166
cba6cf32d
Thanks @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
0ea4bd47e
Thanks @smitbarmase! - Adds aignoreSlowConnection
option to theprefetch()
API to prefetch even on data saver mode or slow connection.