I use Barba js v.2, in a Wordpress site.
The first time I click on a link the page changes in the address bar, but immediately it redirects on my page. The second time I click on the same link, the page changes and the transition works perfectly.
Why do I need to click two times on the same link to change the page and make the transition working?
I use also the plugin W3 Total Cache on Wordpress. Any conflict?
Thanks!
it is if your load encounter a error and it forces a reload. but while reloading it saves the page on "cache". so... the next time you click the link it will force from the cache... instead of reloading
this code helps you track where your code is breaking
});