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
jampackat 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 300index.html 582 index.html 716styles.css 1043 styles.css 1043SOURCE
- subfolder
- index.html 136
- index.html 582
- styles.css 1043
JAMPACKED
- _jampack
- quicklink-2.3.0
- loader.js 55
- quicklink.mjs 3549
- subfolder
- index.html 300
- index.html 716
- styles.css 1043
Terminal
__ __
|__|____ _____ ___________ ____ | | __
| \__ \ / \\____ \__ \ _/ ___\| |/ /
| |/ __ \| Y Y \ |_> > __ \\ \___| <
/\__| (____ /__|_| / __(____ /\___ >__|_ \
\______| \/ \/| | \/ \/ \/
v0.34.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: 25.721ms
Issues
â¶ subfolder/index.html
fix Adding missing to the top of the
1 issue(s) over 1 files