2 ms·
XHR (XML HTTP Request) always seemed like a sadly particular API name for something that's rarely used to consume XML. From that point-of-view, HR seems like a
by bsimpson 12y ago
XHR (XML HTTP Request) always seemed like a sadly particular API name for something that's rarely used to consume XML. From that point-of-view, HR seems like a better name than XR. ;-)
- antihero 12y agoTrue, but I figured having a two letter function was kinda useful, and HR means other things. Plus, it's a light wrapper for XHR, so hey. Another nice side effect is that if you use 2-spaces then your promise .then lines up with the initial call... xr.get() .then(...)