如何隐藏“页面加载"/“传输数据"加载(隐藏)iframe 导致的指示器和微调器 [英] How to hide "page loading"/"transferring data" indicators and spinners caused by loading a (hidden) iframe

查看:27
本文介绍了如何隐藏“页面加载"/“传输数据"加载(隐藏)iframe 导致的指示器和微调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以抑制网页加载时浏览器显示的微调器和传输数据"指示器?

Is there any way to suppress the spinners and "transferring data" indicators that browsers show when a web page is loading?

我正在将一个文档加载到一个隐藏的 iframe 中,这需要很长时间(10 分钟).我不希望/不需要用户意识到这一点 - 让他们感到困惑的是让页面看起来仍在加载.所以我希望能够禁用浏览器通常显示的所有页面加载"活动.

I'm loading a document into a hidden iframe that will take a long time (10's of minutes). I don't want/need the user to be aware of this - it's just confusing to them to have the page look like it's still loading. SO I'd like to be able to disable all of the "page loading" activity that browsers normally show.

推荐答案

我最终找到了适合我们的解决方案.我们没有将文档加载到隐藏的 iframe 中,而是使用此处描述的htmlfile"对象:http://cometdaily.com/2007/11/18/ie-activexhtmlfile-transport-part-ii/

I eventually found a solution that will work for us. Instead of loading the document into a hidden iframe, we're using the "htmlfile" object described here: http://cometdaily.com/2007/11/18/ie-activexhtmlfile-transport-part-ii/

这解决了 IE 平台上的问题.而在非IE平台上,我们可以使用XMLHttpRequest + CORS + chunk encoding.

This solves the problem on IE platforms. And on non-IE platforms, we can use XMLHttpRequest + CORS + chunk encoding.

这篇关于如何隐藏“页面加载"/“传输数据"加载(隐藏)iframe 导致的指示器和微调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆