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.

"new" add-on to Vaadin - LazyLoadWrapper

Petri Heinonen
1 decade ago Apr 14, 2010 7:40am

Hi,

I've created a add-on to Vaadin called LazyLoadWrapper. In a nutshell it's a wrapper "for any" Vaadin UI component that enables lazy loading of that component. The wrapper will continuously check if the component is closing in on the visible area of the browser and load the wrapped component just before it becomes visible.

The idea behind the wrapper is to cut down on the initial loading time of a big Vaadin application that is comprised of several components that are not visible for the user upon application initialization.

The wrapper should also be quite easy to add to a existing project as all that is needed is to download the add-on, add it to your project and (in the simplest case) just wrap your component inside the .addComponent() -call.

mainWindow.addComponent( new LazyLoadWrapper( yourComponent )); 

So head on to the Vaadin Directory and give the wrapper a try.

//Petri

PS: I'll be adding a public issue tracker soon so that possible issues can be easily submitted.

Dmitri Livotov
1 decade ago Apr 14, 2010 9:34am
Petri Heinonen
1 decade ago Apr 16, 2010 11:42am
Dmitri Livotov
1 decade ago Apr 19, 2010 2:08pm
V A
1 decade ago Jan 29, 2011 8:54pm
V A
1 decade ago Feb 06, 2011 2:09am
Oskar Norrback
1 decade ago Mar 21, 2011 7:02am
Daniel Lipp
1 decade ago Apr 28, 2011 9:48am
Petri Heinonen
1 decade ago Apr 28, 2011 10:18am
Daniel Lipp
1 decade ago Apr 29, 2011 9:03am
Petri Heinonen
1 decade ago Apr 29, 2011 11:57am
Daniel Lipp
1 decade ago Apr 29, 2011 12:39pm
Petri Heinonen
1 decade ago May 08, 2011 7:37pm
Dmitry Katsubo
10 years ago Dec 28, 2011 3:04pm
Mike Bailey
9 years ago Aug 24, 2012 11:28pm
Petri Heinonen
9 years ago Feb 03, 2013 6:12pm
Anthony Davie
9 years ago Feb 06, 2013 9:19am
Andreas Müller
9 years ago Feb 27, 2013 3:11pm

Great Add-On. Do you plan to support IE anytime soon?

Gugan Mohan
8 years ago Nov 29, 2013 5:31am
Daniccan VP
7 years ago Oct 31, 2014 11:06am
akram moncer
6 years ago Nov 20, 2015 3:28pm

Hello 

i tried the lazyloadWrapper with this example :

mainWindow.addComponent(new LazyLoadWrapper(
                new LazyLoadWrapper.LazyLoadComponentProvider() {
                    public Component onComponentVisible() {
                        // Create your component here
                        HeavyPanel willBeCreatedOnlyIfShown = new HeavyPanel();
                        
                        return willBeCreatedOnlyIfShown;
                    }
                }));

it seems not working there no component, i only get the spinner and there is a warning in the console :

Nov 20, 2015 4:23:48 PM com.vaadin.server.communication.ServerRpcHandler parseServerRpcInvocation
WARNING: Ignoring RPC call to com.vaadin.lazyloadwrapper.widgetset.client.ui.LLWRpc.onWidgetVisible in connector com.vaadin.lazyloadwrapper.LazyLoadWrapper(71) as no RPC implementation is registered

anyone have faced this issues in the past.

Alex One
5 years ago Aug 05, 2016 8:07am
Udakara Rathnayake
5 years ago Sep 22, 2016 6:14am
Samet Sevim
4 years ago Sep 18, 2017 12:31pm