简体   繁体   English

页面重定向时如何避免Internet Explorer中出现黑屏或白屏?

[英]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.

相关问题 在Activity之间切换时如何避免白屏 - How to avoid White screen when switching between Activities 当我按下Android上的“后退”按钮时,如何避免Web视图出现白屏? - How to avoid white screen in a webview when I press the back button on Android? 使用RequestHeaderAuthenticationFilter时如何测试Internet Explorer? - How to test Internet Explorer when using RequestHeaderAuthenticationFilter? jfxtras-运行议程时出现空白屏幕 - jfxtras - getting blank white screen when running agenda Android Studio - 在模拟器上运行 Ionic App 时出现空白屏幕 - Android Studio - blank white screen when running Ionic App on an emulator 尝试捕获图像并在imageView中设置时白屏空白 - Blank white screen when trying to capture an image and set in imageView 使用WebView在Android中显示页面时,如何处理白屏并清除以前的Web缓存? - How to handle white screen and clear the previous web cache when using WebView to display a page in android? 重定向视图上的空白页 - Blank Page on Redirect View 转换活动屏幕时避免黑屏 - Avoid Blank Screen while transitioning Activity Screen 自动化Internet Explorer时如何等待Java Applet加载? - How to wait for a java applet to load when automating Internet Explorer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM