Making use of browser cache to reduce load times
I've been noticing that when I navigate to a Loomio thread I'd read before, my browser tries to load the previous version from cache (that what it looks like anyway), but then the Loomio UI takes over and replaces the comments with grey boxes. Then I have to wait for comments I've already read to reload before I can review them. A couple of questions:
Is there a way the UI could allow the browser cache to be displayed until the new version of the page is finished loading in the background?
Is there a way the UI could diff the current version of the page in the database with the version in cache, and append changes to it without reloading it from scratch, like it does with appending new content to pages on-the-fly once they're loaded?
As an example of a web app that works like kind of like this, check out Pinafore.social , a web client that works with any Mastodon and Pleroma instance. When I navigate to pinafore.social, the app is loaded from browser cache, so it loads fast, and even if I'm offline, I can read any posts and threads that I loaded previously while online. I can also draft a post, although obviously I can't actually post it until I go online. Once I go online, the app will start polling for new content, which will either start to appear automatically, or a button will appear that I can press to load the new content into the UI.