MOHD13
(MOHD KHAN)
1
Hi guys, can anyone tell me how to implement pre-loader before the page loads in vaadin 10 with java code.
When i navigate from one page to another as the content so much, so it takes times and show blank page, so in place of the blank page i need loader.
Can any one help me, will appreciate?
Thank you!
Tatu2
(Tatu Lund)
2
Hi,
It really depends on your application how to do this. There are couple of approaches.
If the loading time is more about loading data from your backend, you will need asynchronous communication and updates with push. See documentation
https://vaadin.com/docs/v13/flow/advanced/tutorial-push-access.html
There is helper add-on here
https://vaadin.com/directory/component/async-manager
You can do this on component level aswell by using techniques described here
https://vaadin.com/blog/wcw-21-latency-compensation