Open janat08 opened 2 years ago
Elderjs does generate prefetch directives for component scripts/data. https://github.com/Elderjs/elderjs/blob/023336a7a61cb60d9549f1cc5ff4d1922334ed5a/src/partialHydration/hydrateComponents.ts#L215 It doesn't prefetch links on the page.
Server side frameworks would use something like turbolinks to begin prefetching on hover, is there something like it from SPA or elderjs? Elderjs isn't spa right, so prefetching links as if they're server served would work?
Elderjs is not a SPA framework. It generates static site, which only includes static page, scripts, and styles.
So yes, prefetching links should work if the browser/server cache is configured correctly.
If prefetching is supported, is there a programmatic way to begin prefetching pages? Frameworks like gatsbyjs demand that you delineate links that shouldn't be prefetched.