如何解决导航到慢速网络上的其他页面时页面重新加载巴巴.js
我在两个页面之间导航时遇到问题 [ home.PHP --> about.PHP ] 页面重新加载并且没有导航到慢速网络上的 about.PHP 页面。
我正在使用 Barba 预取
barba.use(barbaPrefetch);
barba.init({
sync: true,preventRunning: true,// also increase the timeout to Prevent error
timeout: 5000,transitions: [
{
name: "dpk-transition",async once({ next }) {
smooth(next.container);
},async leave({ next }) {
const done = this.async();
pageTransition();
await Delay(1000);
done();
},beforeEnter({ next }) {
init();
},},],views: [
{
namespace: "curtain",afterEnter({ next }) {
curtainEffect();
},beforeLeave({ current }) {
destroyPlane();
},});
这是我们在选择 3g 慢速网络模式时可以检查和查看的实时站点 http://brahmandjyotish.com/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。