Slow HTML generation with Vaadin

孤街浪徒 提交于 2019-12-21 09:22:16

问题


I'm a developer with a problem ;) Currently we're close to an end on our project (using Vaadin) however...

we're getting some trouble with displaying simple data in one of our views. (over 500 KB of data to display, and over 15K DOM elements after Vaadin is done with generating it... + lots, and lots and LOTS seconds before it's done).

My task is to find out how i can make this as small and as fast as possible, so my first guess was to use some other layouts than those avaliable in standar Vaadin.

I used WeeLayout, DashLayout and CssLayout(default), compare is below:

weeLayout 
- page size:            990 KB
- DOM elements (SMALL): 1454
- DOM elements (BIG):   15423
cssLayout
- page size:            886 KB
- DOM elements (SMALL): 1434
- DOM elements (BIG):   13799
DashLayout 
- page size:            938 KB
- DOM elements (SMALL): 1408 
- DOM elements (BIG):   12163  

It didn't work. So my other guess is to write my own Layout, can someone help me with this ? I even don't know from what should i start.

Thanks Lukasz


回答1:


So the answer for this is using HTML in CustomLayout.

Example

And thread where Vaadin devel helped me




回答2:


Have you tried LazyLoadingWrapper add-on?



来源:https://stackoverflow.com/questions/5753761/slow-html-generation-with-vaadin

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