3 ms·
The Image makes sense as a way to make HTTP requests before XMLHttpRequest was widely supported.
by zarzavat 5y ago
The Image makes sense as a way to make HTTP requests before XMLHttpRequest was widely supported.
- matt_kantor 5y agoHacker News isn't that old. It launched in 2007 at which point XMLHttpRequest had been implemented in all major browsers for several years.
- zarzavat 5y agoOn the desktop yes, but it was on the cusp of the smartphone era so there were many weird mobile browsers around.
- colejohnson66 5y agoThe advantage of XMLHttpRequest is that you get feedback through a callback. When the user clicks the vote arrows, they could turn into something else (such as a spinner) that would disappear when the API request finishes. If my internet is spotty, having some feedback (so I know my votes didn't timeout) would be nice.