New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWD project: Replace XMLHttpRequest in examples with fetch() #156
Comments
See also: mdn/content#14157 |
@teoli2003 can you do the analysis and post it here? Once we have this, I can label this project "ready". |
A further suggestion: During this project, could |
@yarusome note though: our style guide recommends against top-level await, so for casual examples involving just one promise, |
I'm closing this as completed: mdn/imsc-examples#14 is still open but (1) it's not in content and (2) it's approved. I haven't checked through mentions of XHR in Firefox/Releases, but apart from that all places we refer to XHR across MDN have been updated. This doesn't mean we don't mention XHR at all of course, it's still a legitimate part of the web platform. But we promote fetch() instead, and try to make it so people are aware of fetch() as the default tool to reach for when making HTTP requests. |
Problem statement
Although we have for some time promoted fetch() and un-promoted XMLHttpRequest, we still have lots of examples that date from XMLHttpRequest times. We should if appropriate update them to use fetch().
Proposed solutions
No response
Task list
This would take an analysis phase, to figure out where we are using XHR and where we should replace it with fetch().
Priority assessment
More information
No response
The text was updated successfully, but these errors were encountered: