的替代方案对于 Internet Explorer 6
与 Firefox 相比,我的 Web 应用程序页面在 Internet Explorer 6 上加载速度非常慢:IE6 约为 6 秒,Firefox 为 3 秒。
页面的大小确实是我的应用程序中的一个大问题,但是 我还知道
在 IE6 上非常慢(由于 DOM 操作)。
由于我们大量使用它们,我认为该组件可能确实是速度缓慢的原因之一...
那么,是否有 JSF 替代
组件?
或者最终,您知道可以轻松用于 JSF 中的自定义组件的 javascript / jQuery 模式面板代码吗?
技术信息:
JSF 1.2(+ Facelets)和 Richfaces 3.2.2
The pages of my web application are loaded really slowly on Internet Explorer 6, compared to Firefox : around 6s for IE6, 3s for Firefox.
The size of the pages are indeed a big problem in my application, but
I also know that the <rich:modalPanel>
is really slow on IE6 (due to DOM manipulations).
As we use a lot ot them, I think that this component may be indeed one of the reasons of this slowness...
So, is there a JSF alternative to the <rich:modalPanel>
component?
Or eventually, do you know a javascript / jQuery modal panel code that can be easily used for a custom component in JSF?
Technical informations:
JSF 1.2 (+ Facelets) and Richfaces 3.2.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么不在代码中直接使用 jQuery 组件呢?您不一定需要自定义组件 - 特别是因为您正在使用 Facelets。
Why not just use a jQuery component as is in your code? You don't necessarily need a custom component for it - especially since you're using Facelets.
我不认为
是所有问题的根源,更改为其他自定义组件确实有帮助。模态面板内的所有组件都放置在 DOM 中,但它们在开始时是不可见的。尝试将 modalPanel 更改为常规测试。我认为这不会加快加载时间。您可以做的另一个测试是测量没有模式面板的页面的加载时间。对于测试,我建议使用 Fiddler2 工具。它将帮助您测量 IE 浏览器的性能。
I don't think that
<rich:modalPanel>
is root of all problems and changing to other custom components really helps. All compoments that are inside modal panel are placed in DOM but they are invisible at the begining. Try to do tests changing from modalPanel to regular one. I think that won't speed up loading time. Another test you can do is to mesure load time of page without modal panel.For the tests I recomend use Fiddler2 tool. It will help you mesure performance on IE browsers.
JQuery UI 对话框是一个不错的选择。看看吧。
JQuery UI Dialog is a good option. have a look at it.