【发布时间】:2014-05-16 08:44:56
【问题描述】:
我正在使用第三方控件在其中加载 pdf,其中 Pdf 是延迟加载的。在我的场景中,我想在页面加载时加载几个页面,并希望加载 pages to load at background.
// Load the required pages at the Load.
function PreLoadPdf(startpage, endpage) {
myApi.addEventListener("rendered", function () {
for (var i = startpage; i <= endpage ; i++) {
myApi.getPage(i).loadRendered();
}
});
}
现在上面的代码执行预加载我想要的 Pdf,但我也想在后台加载剩余的页面。 How to execute the Jquery Method at the background of the page without freezing the page. 而且我不应该使用,
setTimeout(function () {}
【问题讨论】:
-
如何,实际上用户并不关心加载,他只是查看阅读器中的某些页面,而其余页面应在后台加载
标签: javascript jquery asp.net pdf radpdf