我在网络上找到了几种预加载/重定向网页的方法。
现在问题是,这是否是处理带有预加载的重定向的正确方式(异步加载下一页,同时仍显示当前页面)。
$.get("page.php", function (data) {
document.open();
document.write(data);
document.close();
window.history.pushState("Title", "Title", "/page.php");
$.cache = {};
}, "html");
我应该选择普通重定向还是其他方式更好?
window.location = "page.php";
下一页包含全屏视频和声音轨道(音频)。
谢谢。