Welcome to yoink! This is intended to be a tool for static websites to allow for faster navigations. Links are pre-loaded, pre-rendered, and cached when the website detects intent to load a new page (ex. hovering a link).
Find me on github: github.com/vartan/yoink
Check out this second page to play around with navigation.
yoink-content.
.partial.html equivalent which contains only the contents of
the
yoink-content block. For example, if you have foo.html make a sibling
foo.partial.html.
yoink.js to your pages.Links are pre-fetched under the following conditions:
Once a link is prefetched, it is rendered in an offscreen element in order to preload any contained images,
as well as to minimize layout costs for later. After it is painted, it is styled with
display: none to minimize any performance
impact while it is hidden.
When the link is clicked, the currently displayed content is swapped with the hidden offscreen content.