4 ms·
Too be honest that’s just poor development practice. We run a React SPA, and our backend for initial page load & API is in PHP. Frontend devs work with backen
by charrondev 7y ago
Too be honest that’s just poor development practice.
We run a React SPA, and our backend for initial page load & API is in PHP.
Frontend devs work with backend devs to ensure the critical path of the page can we gathered in 1 request. This usually means having some expand query params on the get request.
We also preload critical API responses in the initial page load to prevent this initial loading indicator.
- folkhack 7y ago^^ Also agree on this. I have seen the whole "it has to be RESTful" thing that the parent comment was discussing as a way to justify huge amounts of HTTP overhead too many times however.