SmartGWT slow images rendering

会有一股神秘感。 提交于 2019-12-12 04:44:53

问题


I have a SmartGWT 2.0 application where I have to render a few hundred small images and this is taking very, very long (>20s). It's a intranet application. Do you have any idea how I could speed up the rendering? Any idea will be appreciated. Thanks in advance.


回答1:


You mentioned it's an intranet application but the network or server could still be a culprit. You can use Firebug's "Net" panel to see the network delays from fetching the images. If those are the problem, there's no fix within your SmartGWT Java code.

If rendering speed is the problem, what approach are you using? For this volume of images you probably want to use simple HTML tags inside of a SmartGWT Canvas via Canvas.setContents().




回答2:


I know the post is old, but if it can help others people.

I would take a look at this :

An image bundle is a construct used to improve application performance by reducing the number of round trip HTTP requests to the server to fetch images. GWT can package many image files into a single large file to be downloaded from the server and managed as a Java object.

It's very useful https://developers.google.com/web-toolkit/doc/latest/DevGuideUiImageBundles



来源:https://stackoverflow.com/questions/2154881/smartgwt-slow-images-rendering

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!