3 ms·
The average Google user is more likely to be someone running Microsoft Edge on a 6-year-old cheap PC, than Chrome on a 1-year old Macbook. An SPA requires the f
by thehappypm 7y ago
The average Google user is more likely to be someone running Microsoft Edge on a 6-year-old cheap PC, than Chrome on a 1-year old Macbook. An SPA requires the front-end do the heavy lifting, spinning up tons of Javascript. Server-side rendering means the browser doesn't have to do a lot of work -- just render the damn HTML, which is fast and efficient. Google results pages are not very hugely interactive compared to say Facebook, so it's better to keep the browser happy to make the page load quickly.
- sam0x17 7y agoThis makes a lot of sense to me. Still, I wonder if there is an additional advantage here in terms of being able to render results before the request is fully received -- is that even possible with AJAX?
- thehappypm 7y agoWith Ajax, definitely not, though I imagine some wizard will mention some mode where it can be done. Fundamentally, imagine if you started running code on partially downloaded JSON. Imagine an array of objects is partially downloaded, then the JSON is parsed, the code starts running, then suddenly more objects are added to the array later? That would be a runtime nightmare.