English 中文(简体)
SmartGWT slow images rendering
原标题:
  • 时间:2010-01-28 13:45:57
  •  标签:
  • gwt
  • smartgwt

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.

最佳回答

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().

问题回答

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





相关问题
Refresh the UI in gwt

I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I ...

How to create a development/debug and production setup

I recently deployed inadvertently a debug version of our game typrX (typing races at www.typrx.com - try it it s fun). It was quickly corrected but I know it may happen again. After digging on ...

GWT error at runtime: ....style_0 is null

My code works fine in IE 8, but on firefox 3.5, the javascript fails to load. I used firebug to figure out why, and the error I get is (GWT detailed mode) My suspicion is that some style is not ...

GWT s hosted mode not working

I ve been stumped for a while trying to figure out why my GWT demo app isn t working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the ...

How to disable Google Visualizations Tool Tips?

Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, the "...

GWT 2 CssResource how to

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and ...

热门标签