BlockUI 性能不佳
我的 aspx 页面上的 BlockUI 和 ASP.NET AJAX 遇到严重的性能问题。
我正在尝试简单的元素阻塞,但它随着滞后/延迟而逐渐消失。页面上的 html 错误会影响 blockUI 吗?
我阻止了一个垂直跨越浏览器上方的大 div 。解锁对于同一页面效果很好(没有任何延迟/滞后)。如果我的更新面板超时,淡入效果也很好,但只是有延迟。
function blockMaster(){
$(document).ready(function(){
$('#ftMaster').block({message:"<h2>Just a moment...</h2>"});
$('#<%=btnAJAX.ClientID%>').attr("disabled",true);
});
}
I am having serious performance issues with BlockUI and ASP.NET AJAX on my aspx page.
I'm trying simple element blocking but it is fading in with a a lag/delay. Do html errors on page affect blockUI?
I'm blocking a large div spanning well above the browser vertically. The unblock works great for the same page (without any delay/lag). In case of a timeout on my Update Panel, the fadein works good too but just comes with a lag.
function blockMaster(){
$(document).ready(function(){
$('#ftMaster').block({message:"<h2>Just a moment...</h2>"});
$('#<%=btnAJAX.ClientID%>').attr("disabled",true);
});
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信 HTML 错误会阻止
blockUI
工作,如果它们很严重的话。当您注释掉$(document).ready()
中的block()
调用并在页面完全加载后通过 Firebug 手动调用它时会发生什么?还有延迟吗?您是否有在ready
事件上调用的其他处理函数?谁在何时调用blockMaster()
?I believe that HTML errors would prevent
blockUI
from working at all, were they serious. What happens when you comment out theblock()
call from$(document).ready()
and call it manually via Firebug once the page has loaded completely? Is there still a delay? Do you have other handler functions that are being called on theready
event? Who callsblockMaster()
, and when?