client:idle do in Astro?client:idle tells Astro to wait until the browser is idle before hydrating a component. This means the component loads only when the user is not busy, improving page speed.
client:idle instead of client:load?client:idle delays hydration until the browser is free, reducing initial load work. client:load hydrates immediately after page load, which can slow down the user experience.
client:idle improve user experience?By hydrating components only when the browser is idle, it avoids blocking important tasks. This keeps the page responsive and fast for the user.
client:idle?Avoid client:idle for components that need to be interactive immediately, like buttons or forms visible on page load.
client:idle rely on to detect idle time?client:idle uses the requestIdleCallback API to run hydration when the browser is idle.
client:idle do in Astro?client:idle waits for the browser to be idle before hydrating, improving performance.
client:idle use to detect idle time?requestIdleCallback lets scripts run when the browser is idle, which client:idle uses.
client:idle NOT a good choice?Components needing immediate interaction should hydrate right away, so client:idle is not suitable.
client:idle?Delaying hydration until idle reduces work during page load, making it faster.
client:idle affect JavaScript execution?client:idle schedules JavaScript to run when the browser is free, improving responsiveness.
client:idle works in Astro and why it helps performance.client:idle for component hydration.