Low bandwidth optimisation

Hi Vaadinians,

I’d like to try to optimise my application for users who have limited bandwidth. The biggest contributing factor to the download is the .js file which presumably contains the compiled DefaultWidgetSet GWT javascript. I have looked around for similar threads and questions, but they mostly start out with a higher degree of knowledge than I have, such as https://vaadin.com/forum/#!/thread/1174307

Options:

  • Reduce download size by compiling my own widgetset. I seem to remember seeing something about an optimiser that allowed you to deliver the javascript in stages as the widgets are requested? Could someone point me in the right direction for this?
  • Reduce the download size via compression, I guess I look to Jetty configuration for this?
  • Ask the browser to cache the javascript - etag, max-age? How can I control these?
  • …?

Many thanks for any help available,
Dan.

I continued looking at my browser’s development tools and it turns out that the cache-control: max-age=0 header I saw was actully in the request. It looks like the javascript is being cached, but only most of the time - sometimes I get a 200 response instead of a 304 (not modified). I haven’t isolated the cause.
Several other oddities (vaadinBootstrap is affected too, for example) seem to ocurr but only in Safari. So I’ll keep working on it.

Hi,

Check out my recent blog entry, that might give you some good pointers:
https://vaadin.com/blog/-/blogs/optimizing-hosting-setup

cheers,
matti

Thanks Matti