4 ms·
In theory, yes. But is anyone actually effectively writing apps in that way? I can't think of a single good example I've seen in the wild. Most of the time the
by underwater 5y ago
In theory, yes. But is anyone actually effectively writing apps in that way? I can't think of a single good example I've seen in the wild.
Most of the time the app is either large and sprawling, updated frequently, or XHR fetches are written in an inefficient way. All of these nullify the benefits from the model of having cached application code. For example if you're waiting for your JS app to initialise, then fetching XHR in a serial way you're probably slower than an SSR page that is sending a data blob down inline.
I'd say SSR is a good rule of thumb, and the few people who build SPAs who can make use of this will know when to break that rule.
- deleted 5y ago[deleted]