I want to render my pages client-side to help keep the load off the server and keep down traffic. I understand that the first call to the server normally results in that the server must render the page requested and then sends that page to the user. When the user interacts with the page the javascript takes over the routing, which sends requests to the server for a specific view which then is updated via javascript on the client.
I was thinking if this approach exists or not and if it is viable.
Let's say i wish to go to the address:
www.example.com/about
Is there an approach which attaches the /about
as an argument to the html page/javascript code (same that serves www.example.com/
) from the server. When the dom is ready on the client it sends a request to the server for the /about
data, which with the response updates the clients views. This would mean skipping the server side rendering completely.
Or am I crazy?