How to use quicklink - 1 common examples

To help you get started, we’ve selected a few quicklink examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github radio-t / radio-t-site / hugo / src / js / quicklink.js View on Github external
function start(options = {}) {
  options = {
    ignores: [
      (uri, elem) => String(elem.getAttribute('href'))[0] === '#',
      (uri, elem) => elem.matches('[noprefetch]') || elem.closest('[noprefetch]'),
    ],
    ...options,
  };
  quicklink(options);
}

quicklink

Faster subsequent page-loads by prefetching in-viewport links during idle time

Apache-2.0
Latest version published 2 years ago

Package Health Score

64 / 100
Full package analysis

Popular quicklink functions