Realm has, what I call, “transparent offline” feature. With this feature, all realm apps are offline enabled, meaning the realm websites are work even when internet is not available. Further, this feature helps improve the speed perception, as when a page is requested by user, even when internet is there, its served via service worker from local cache (if found), and app is initialised, so users can start seeing with cached data, and in background a request is sent to fetch the latest version of the page, which comes after a second or so, and the app is re-initialised.
While this works great, it causes an issue on initial page load. The issue manifests when the cached app is loaded, and then after a second of so fresh app is loaded. If during the first load the UI changed after load, either automatically (eg scroll to some position), or due to user events, during the reload the user sees a jarring re-initialization of UI, and can even lose data, if user had already typed something for example.
rustfmtFor Some Section