sapper
sapper copied to clipboard
prefetch on focus
trafficstars
This PR adds an event listener in order to prefetch links on focus. Closes #900.
Sorry this had gone unreviewed for so long. It seems like a decent idea. It's got some merge conflicts, so I can't just hit merge on it. This code exists in SvelteKit as well. I'd hate to add new features to Sapper that don't get added in SvelteKit. If we're going to add it to just one place I'd rather add it there. What do you think?
https://github.com/sveltejs/kit/blob/84e9023c06dc3579972f93e0d5cf1f2481aa3be4/packages/kit/src/runtime/client/renderer.js#L101
SvelteKit 1.0 is now out and Sapper is deprecated, so I'm going to close this