-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
Promote Fetch over XMLHttpRequest and stop using "AJAX" #14157
Comments
Yes. I was going to say, "but you should update the AJAX glossary" so the term is captured still, but I see you sorted that already. |
Yes! We talked about this during the #writing-docs meeting earlier today. The consensus: Remove it! It’s an old guide that doesn’t bring much. A comment should be added to the XHR pages indicating "this was called AJAX" with a link to the AJAX glossary page from that text. Also, we need to ensure glossary term "AJAX" no longer links to this page; instead the glossary page (and all other links that pointed to the guide) get updated so they linkback to the relevant Fetch/XHR pages. |
MDN has lots of docs that mention/promote AJAX and explain how it is implemented using
XMLHttpRequest
.Two problems:
XMLHttpRequest
because it is a lot simpler and results in better code. On quick scan the only downside of Fetch appears to be that it does not support progress notification (I have not checked if this is true or not in current version). There is a great doc here: https://jakearchibald.com/2015/thats-so-fetch/By grep, "XMLHttpRequest" is about 223 files, while "AJAX" (66 files).
I think this is going to be a bit of a project to resolve. There are some easy wins, but in particular the use of
XMLHttpRequest
is deeply embedded in a lot of docs.For the Ajax part, would be good to start looking at these entry points:
https://developer.mozilla.org/en-US/docs/Glossary/AJAX
The text was updated successfully, but these errors were encountered: