Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter web website takes a long time to load initially

I am currently creating a flutter web application for a client, however, when the website is navigated to for the first time in the browser, the page loads to a blank screen and a few seconds later shows the actual homepage widgets. After the page has been cached in it seems to be quicker on subsequent reloads.

Is there something that I can change about my flutter web app in order to decrease this initial load time? I know that flutter web is still in beta, so it may just be that -- will this be fixed when flutter web becomes deployment ready?

Any help is appreciated.

like image 828
bobdub Avatar asked Sep 29 '20 20:09

bobdub


1 Answers

Before running certain views, especially the first time the web app is built, it takes a moment to load everything up. The best thing to do in such case is to add a loading screen/widget.

You should have a look at this article by Juan Curti.

like image 175
Aashar Wahla Avatar answered Oct 26 '22 14:10

Aashar Wahla