@mathias Instead of advocating the use of a mostly unsupported response type, maybe you should start using “onload” first…
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias You can replace the `onreadystatechange` by using the `load` event or setting the `onload` property. See https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias You can save a lot of boilerplate code that way, and unlike the json response type, it's quite well supported.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias You're welcome! And I'm looking forward to that post ;)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias but orthogonality. { xhr.responseText } and parse as you wantThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias Kudos! But “which can be set to indicate the expect response type”, shouldn’t it be “expected” instead?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.