frontarm / navi

🧭 Declarative, asynchronous routing for React.
https://frontarm.com/navi/
MIT License
2.07k stars 71 forks source link

Reload flash #171

Closed nhooyr closed 4 years ago

nhooyr commented 4 years ago

I think it'd be good if navi didn't render anything until all bundles were loaded on the first load to avoid flashing.

You can see this on my personal site:

https://nhooyr.io/time-to-give-back

Just reload and the header appears first and then the content renders.

I suppose I could server side render as well.

nhooyr commented 4 years ago

Ended up integrating static rendering into my app.

https://github.com/nhooyr/blog/pull/27