Re:What should have been an IMG element became this
by charrondev on Sunday October 20, 2019 @06:35PM
(#21307764)
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.
Re:What should have been an IMG element became this
by folkhack on Sunday October 20, 2019 @07:01PM
(#21307918)
^^ 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.
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.