[英]How to avoid the blank or white screen in Internet Explorer when page redirect?
I'm developing a Java EE project using ICEfaces3 framework, and now we are facing a knotty problem when every time u click a banner tab(Not limited) send a request to trigger a page redirect, since then a white screen is shown just for nearly 1sec during redirect to a new page. 我正在使用ICEfaces3框架开发Java EE项目,现在每次您单击横幅选项卡(不限)发送请求以触发页面重定向时,我们都面临一个棘手的问题,因为这时仅显示白色屏幕重定向到新页面的过程将近1秒。
This issue can be reproduced in IE7/8/9, Firefox and Chrome works fine. 可以在IE7 / 8/9中重现此问题,Firefox和Chrome正常运行。 So far I did much research on IE, when I open the debug tool to watch the network status I see every time the white screen displayed the network is request to *.iface url, and after processing the *.iface request within 1sec, the redirect page will be rendered.
到目前为止,我对IE进行了大量研究,当我打开调试工具以查看网络状态时,每当白屏显示网络向* .iface网址发出请求时,我都会看到,并在1秒内处理* .iface请求后,重定向页面将被呈现。
OH, attach a NOTE, I have tested other applications such as MS-Hotmail, when I land in the hotmail login page and click sign in button, a white page is also displayed for some seconds then the redirect page rendered. 哦,附加一个注释,我已经测试了其他应用程序,例如MS-Hotmail,当我进入hotmail登录页面并单击“登录”按钮时,还会显示白页几秒钟,然后呈现重定向页面。 This is same as my problem.
这和我的问题一样。
Is there any solutions to solve the IE white screen redirect issue? 是否有解决IE白屏重定向问题的解决方案? Special thanks to your reply!
特别感谢您的回复!
Unfortunately, this is a browser-specific issue. 不幸的是,这是特定于浏览器的问题。 IE clears the HTML DOM immediately as the response has been arrived, regardless of if the response headers indicates a redirect and/or if the response body contains a HTML document.
IE会在响应到达后立即清除HTML DOM,无论响应头是否指示重定向和/或响应正文是否包含HTML文档。 Other browsers only clears the HTML DOM tree only at the moment when it's supposed to be replaced with new content.
其他浏览器仅在应将HTML DOM树替换为新内容时才清除它。
Your best bet would be performing the request by ajax instead. 最好的选择是由ajax执行请求。 The only caveat is a non-SEO-friendly link when a
<h:commandLink>
is been used. 当使用
<h:commandLink>
时,唯一的警告是非SEO友好链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.