▲ | nemothekid 4 days ago | |||||||||||||||||||||||||||||||
>every SPA app I’ve ever seen is two orders of magnitude slower than ordinary HTML would have been. I'd argue then you don't have an SPA. However I don't see how you could have a application like Figma or Discord and say "ordinary HTML is faster" (or even possible). | ||||||||||||||||||||||||||||||||
▲ | jiggawatts 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
For ever one real "app" like Figma there are hundreds of web pages with some forms and light interactivity. Numerically there are far more enterprise LoB apps than there are true web applications that SPAs are well suited for. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | econ 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
You mean a chat cliënt? That seems a good worse case scenario. If you limit history to the most recent message (and have an link to the archive at the top) you could simply reload the entire page on some interval that declines with message frequency (and when you submit the form) Since the html document is pretty much empty the reload happens so fast you won't see the flashing. With transitions it would be perfectly smooth. With modern css you can put the elements out of order. You can simply append the new line to the end of the html document that represents the channel. (And to the archive) Purging a few old lines can be done less frequently. I haven't tried it but it should work just fine. I will have to build it. Initial load will be 100x faster. The page reloads will be larger but also insanely robust. | ||||||||||||||||||||||||||||||||
|