-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.12
-
Component/s: None
Damien said:
It seems studio now don't use basic GWT icons. I noticed that at every change, in a project, the icons have to be reloaded. So the problem may appear more often now. Moreover it's quite annoying since it changes the heights of items in the treeview and you have to wait everything is loaded before choosing a node. There are a few things we can do :
- add some caching headers to those resources (i don't know why they are not in /skin/resources....)
- Add some width and height properties to the img tag so that the browser doesn't have to repaint when a image is loaded.
- use GWT sprites to handle those resources : https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#ImageResource I think it supports the previous point.
Lise answered:
- adding some caching headers can be a solution, i haven't any reason to move all those resources while updating them, i've let them where they were, but if it's a problem i can also move them somewhere else if it is more efficient.
- about width and height, that means to add a specific class for all the location an icon is called.
- is required by
-
NXS-1639 Use ResourceBundle to serve icons
- Open