Hacker News new | ask | show | jobs
by quadral 1093 days ago
This is my nit pick with these SPA apps.

It's becoming a habit where it is _okay_ to split your UI into many components, and those many components are doing their own separate thing, but the problem occurs when those components are doing their own API calls.

Hard reloading Reddit and looking at the total ajax requests, I am getting between 132 and 140 ajax requests to load a relatively simple page; text and images.

It's absurd how they manage to get into this state and think it's _okay_.

4 comments

I was in a big bookstore inside an old building today. Tried using Goodreads.com and realized, due to my poor mobile connection, that every new word on the search bar was creating separate requests due to the dynamic search feature... sight
On a slow internet connection it simply won’t load.
130 ajax requests for a page?! lol
This should not be a condemnation of SPA, webapps, or anything of the sort.

It should be a condemnation of append-only marketing people guiding your web application.