3 ms·
What do you mean doing rendering on the client side? The browser does the rendering anyway. Or do you mean assembling the HTML to be rendered? Single Page App
by pas 10y ago
What do you mean doing rendering on the client side?
The browser does the rendering anyway. Or do you mean assembling the HTML to be rendered?
Single Page Apps are very good. GMail is possible because you don't have to reload the whole page and the images every time you click.
It's the "autocomplete" on steroids turned to 11. And it's much easier to implement, because you have state on the client side, and you can implement a simple REST API, which is much easier than maintaining sessions on the backend and implementing a thousand /?q=<method> endpoints. (And can be consumed easily by other clients.)
And these frontend frameworks solve the "browser refreshing" thing for you.
Introducing changes to Angular 1 apps was a bit hard, yes. But compared to the previous jQuery hell, I think the structure that the evil Angular cult forced on people was worth it. And TypeScript and ES6 modules are finally making those things pleasant.