I was adding a simple blog to a Wappler site but ran into some issues with how it loaded.
If you have a super simple setup of Header - Page Content - Footer and the page content is all dynamic when the page loads, you can see the footer for a split second before the content is loaded and shoves the footer down. It looks bad and causes a bunch of layout shift.
And for something like a navbar, if you have it fetch the nav items via a database query they will just pop onto the page a tiny bit after the static content loads.
I know you can add things like a pre-loader or placeholders, but the content loads really quick so it just ends up flashing the placeholders/pre-loader on the screen for a split second and almost looks worse than not having it. I would prefer to be able to just have the data ahead of time.
When I looked into how it works with things like WordPress, I saw it uses server-side rendering.
So, I know you can add things like meta tags via server-side rendering but is it possible to use it for page content?
Or is that not how server-side rendering works/is intended to be used?
If that’s the case, is there any other way to setup a page that loads data from the database but isn’t dynamic in terms of user interaction?