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

No prefetch of links are added to the pages.

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 1043

SOURCE

  • 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
Source Open in new tab
Jampacked Open in new tab
Terminal
__                                    __    
    |__|____    _____ ___________    ____ |  | __
    |  \__  \  /     \\____ \__  \ _/ ___\|  |/ /
    |  |/ __ \|  Y Y  \  |_> > __ \\  \___|    < 
/\__|  (____  /__|_|  /   __(____  /\___  >__|_ \
\______|    \/      \/|  |       \/     \/     \/
 v0.32.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: 28.97ms

 Issues 

▶ subfolder/index.html

 fix  Adding missing  to the top of the 


 1 issue(s) over 1 files