3 ms·
A SPA generally has to initialize and hook everything up. If you're being even more trendy and have turned your entire back end into an API, you then have to w
by mattmanser 9y ago
A SPA generally has to initialize and hook everything up.
If you're being even more trendy and have turned your entire back end into an API, you then have to wait for the javascript to compile, wait for the intial document complete javascript call, post off for the data, wait for the data, run a render and finally display what the person wants.
On your dev laptop with 16 Gb and multi-core and a local database and web server, that's fast.
For all your users, it's not.
And all that for what? In the context of this discussion, maybe a fancy user menu that could have been written in a couple of kb of raw javascript by someone with more than a couple of years of dev experience that would take a millisecond to compile and run compared to the 500ms-20s of having to wait for something like React or Angular or Knockout or whatever.