Slow HTML Generation with Vaadin

I am a developer with a problem;) We are currently close to the end of our project (using Vaadin), however ...

We are having trouble displaying simple data in one of our views. (more than 500 KB of data to display and more than 15 thousand DOM elements after Vaadin is created with its creation ... + lots and lots and a few seconds before its completion).

My task is to find out how I can make it as small and fast as possible, so for the first time I was planning to use some other layouts than those available in standard Vaadin.

I used WeeLayout, DashLayout and CssLayout (by default), a comparison is given 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 

This did not work. So another hunch is to write your own layout, can someone help me? I don’t even know where to start.

Thanks Lukas

+8
java tomcat vaadin
source share
2 answers

So the answer for this is using HTML in CustomLayout.

Example

And the stream where Vaadin devel helped me

+5
source share

Have you tried the LazyLoadingWrapper add-on?

+3
source share

All Articles