I cannot get barba v1 prefetch behaviour to work
I want to load links on hover instead when in viewpoint (v1 behaviour)
Barba loads dozen of links (because viewpoint loading)
Just the prefetch demo code, really:
import barba from '@barba/core';
import barbaPrefetch from '@barba/prefetch';
// tell Barba to use the prefetch module
barba.use(barbaPrefetch);
// init Barba
barba.init();
Hi @S1SYPHOS,
Please, check this…
We really need more details / context / explanations to provide some help…
Another option is to join us on Slack.
Thanks
@S1SYPHOS,
Do not use @barba/prefetch.
By default v2 has the same hover/prefetch behaviour as v1…
Thank you very much, totally missed that - thought prefetching was optional with v2.
Most helpful comment
Hi @S1SYPHOS,
Please, check this…
We really need more details / context / explanations to provide some help…
Another option is to join us on Slack.
Thanks