Skip to content

2.0.0

Compare
Choose a tag to compare
@addyosmani addyosmani released this 13 Jan 01:31

2.0.0 is a major rewrite of Quicklink, introducing a first-class prefetch method that can be used in more contexts, new features like limit, throttle and other DX improvements.

In-viewport prefetching is now available via the listen() method.

  • adds limit option – total allowed requests
  • adds throttle option – max concurrency control via throttles
  • exports prefetch method directly
  • exports previous default as listen method
  • aborts listen early if no IO support
  • only require IO support when using listen
  • when okay, listen returns a reset / unlisten function
  • allows prefetch to accept url[] list

For the latest documentation around this release, see https://getquick.link/