InstantPageLoader
This page was created by Hans.karlsen on 2025-09-23. Last edited by Hans.karlsen on 2025-09-23.
To make pages load in an instant the answer - the resulting html - must already be known.
To know the resulting html of a page requires you to cache it ahead of time.
To catch the rendered html of page content go like this:
Use blazorserverside (/appli/)
/appli/ViewModel/rootid/CACHETHIS This will try to post to a viewmodel in your model called SysCacheCapture , must be unrooted, must be RestAllowed
In SysCacheCapture ViewModel we will try and populate 3 string columns:
- rootid
- viewmodel
- html
In the unrooted SysCacheCapture ViewModel consider if you need a new object - or try and find an existing object to hold the html cache.