3 ms·
any JSON request you make to the server to render html can be replaced by a single request to the server that replaces HTML. It's simpler to do the latter.
by arkis22 6y ago
any JSON request you make to the server to render html can be replaced by a single request to the server that replaces HTML. It's simpler to do the latter.
- imtringued 6y agoNo it isn't. Now you need to keep client state on the server. Have you ever used JSF? It's doing what you describe and it's the worst framework I have ever used. Yes it's even worse than using PHP+Apache without a framework.
- arkis22 6y agoYou always keep client state on the server in the sense that the DB keeps track of sessions and the server keeps track of caching. Never trust the state of the client... Never trust client's input... No idea what JSF is. Sorry it didn't give you access to the data you needed when you rendered files.