Prefetch links
jampack
can prefetch links on the page for faster future navigation.
Read more about why you need link prefetch on web.dev.
Configuration
{
misc: {
prefetch_links: 'in-viewport',
},
}
Possible options
prefetch_links: 'off'
No prefetch of links are added to the pages.
prefetch_links: 'in-viewport'
jampack
adds quicklink to all the html page.
quicklink prefetches links that appear in viewport during idle time.
quicklink is a ~2K (minified/gzipped) Javascript module. This Javascript is asynchronously loaded by
jampack
at low priority and doesnât affect the performance of the pages. The quicklink module is loaded once by the browser and cached for new pages.
See quicklink website for more information.
Demo
SOURCE
JAMPACKED
_jampack quicklink-2.3.0 loader.js 55 quicklink.mjs 3549subfolder subfolder index.html 136 index.html 230index.html 551 index.html 614styles.css 1043 styles.css 1043SOURCE
- subfolder
- index.html 136
- index.html 551
- styles.css 1043
JAMPACKED
- _jampack
- quicklink-2.3.0
- loader.js 55
- quicklink.mjs 3549
- subfolder
- index.html 230
- index.html 614
- styles.css 1043
Terminal
__ __
|__|____ _____ ___________ ____ | | __
| \__ \ / \\____ \__ \ _/ ___\| |/ /
| |/ __ \| Y Y \ |_> > __ \\ \___| <
/\__| (____ /__|_| / __(____ /\___ >__|_ \
\______| \/ \/| | \/ \/ \/
v0.30.0 |__| by âčdivâșRIOTS
Options:
{ onlyoptim: true }
Merging default config with:
{
"misc": {
"prefetch_links": "in-viewport"
}
}
PASS 1 - Optimizing
ⶠindex.html
ⶠsubfolder/index.html
Done: 30.629ms
Issues
ⶠsubfolder/index.html
fix Adding missing to the top of the
1 issue(s) over 1 files