|
|
|
|
|
by Dangeranger
1535 days ago
|
|
I would like to see web apps move in the direction of server-side rendered static pages on initial load, and then progressively hydrate the app with data from the back-end on demand. Rails does this surprisingly well using Stimulus with web sockets to mediate the exchange of events and data between the client and server layers. Similar strategies are used in Phoenix Live View apps. Load static markup and data -> request more data if you need -> send events and data to the server -> respond with the new state to display if different than the client’s version. |
|