vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.79k stars 729 forks source link

First time page load is taking 2-3 seconds #8088

Closed charyseqnc closed 7 years ago

charyseqnc commented 7 years ago

Hi, We have a build vaadin application using Vaadin 7. We used default and spreadsheet widgets in our application. When we load the login page the cache JS file taking 1-2 sec to load and execute. I have removed spreadsheet widget from widget set but no use. May I know why that cache js used and why its taking time to load?

elmot commented 7 years ago

Hello, That is gwt nature. By default, all the widgets are compiled to single quite big .js file(widgetset) and that file is mandatory to run any part of your UI. You can optimize your widgetset. Please refer to https://vaadin.com/wiki/-/wiki/Main/Optimizing+the+Widget+Set