You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like hovering on an anchor tag sends the corresponding request and we save a couple of hundred milliseconds in delay that leads to a snappier end user experience.
@AlexxNB Thinking out aloud, couldn't Tinro support a <script context="module></script> block that runs code on the client side before the route component gets loaded. And prefetching/preloading logic could be coded there by the dev. And we annotate the anchor tags with a tinro:prefetch to indicate that this route needs to prefetch content?
@AlexxNB Thinking out aloud, couldn't Tinro support a <script context="module></script> block that runs code on the client side before the route component gets loaded. And prefetching/preloading logic could be coded there by the dev. And we annotate the anchor tags with a tinro:prefetch to indicate that this route needs to prefetch content?
That is an interesting take on it, seems declarative enough just like Tinro.
Like hovering on an anchor tag sends the corresponding request and we save a couple of hundred milliseconds in delay that leads to a snappier end user experience.
Coming from SvelteKit, this is the corresponding documentation
https://kit.svelte.dev/docs#anchor-options-sveltekit-prefetch
The text was updated successfully, but these errors were encountered: