Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Low Bandwidth ideas? Newbie question

Keith Smelser
1 decade ago Jan 19, 2010 11:03pm
Henri Sara
1 decade ago Jan 20, 2010 6:56am

The biggest bandwidth consumer for most Vaadin applications is the initial download of the widgetset (client side Javascript engine). Most UI updates taking place after that are very small, only telling which parts of the page have changed in a compact format rather than reloading the whole page.

The most important optimization to reduce bandwidth usage is to enable compression on your server (if not already on by default), which helps all users.

GWT 2.0, which Vaadin 6.3 will use, has some optimizations that could make the compiled widgetset slightly smaller.

As for (a reasonable number of reasonably sized) icons, they are unlikely to be a major issue but if necessary, you could consider combining your icons into a single image using e.g. SmartSprites. This will increase the complexity of your build process somewhat, though.

Joonas Lehtinen
1 decade ago Jan 20, 2010 7:29am

Also, images loaded by the theme CSS and the application itself can contribute quite a large part of the download. In some applications this might be quite a bit larger part than the javascript. Thus keeping the theme simple and with as few and small images as possible could help the load-time.

Marc Englund
1 decade ago Jan 20, 2010 8:55am

Hi,

One more thought:

If you want to support _both_ low- and high-bandwidth, with more bling for the high-bandwidth version, one way would be to create two separate themes. ThemeResources, CustomLayouts and CSS can be customized in each theme, so you get a lot of flexibility by using those.

Best Regards,
Marc

Keith Smelser
1 decade ago Jan 20, 2010 6:46pm