Barba prefetches automatically and cache your pages.
It is mainly inspired by quicklink.
Based on Intersection Observer, it processes all eligible links that enter the viewport. Note that depending on your browser, you may need a polyfill to properly use this module.
You can use this feature regardless of the
prefetchIgnore core property. Since the links will be prefetched depending on the viewport, it will prevent the core prefetch process from prefetching a link on enter.
import barba from '@barba/core';
On slow network or with a high page weight, the server can take time to prefetch the response and can lead Barba to abort the transition and display a Timeout error  message.
timeoutsetting to properly manage this behavior.