jackyef / react-isomorphic-data

Easily fetch json data in your React components, with similar APIs to react-apollo, and Suspense SSR :tada:

Home Page:https://react-isomorphic-data.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `prefetch` options

jackyef opened this issue · comments

This can be useful during SSR so we can generate link rel="prefetch" tags, for resources that are not fetched during SSR. prefetch will automatically tries to fetch the resources when the browser is idle, and if it finishes, the resources will be ready in the browser cache already.

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefetching_FAQ

Done in #21