Skip to content
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

what's this mean ? fetch will be replace xmlhttprequest ? #115

Closed
xgqfrms-GitHub opened this issue Feb 17, 2017 · 2 comments
Closed

what's this mean ? fetch will be replace xmlhttprequest ? #115

xgqfrms-GitHub opened this issue Feb 17, 2017 · 2 comments

Comments

@xgqfrms-GitHub
Copy link

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
For more help, check https://xhr.spec.whatwg.org/.

var xhr = new XMLHttpRequest();
xhr.open("GET", "https://www.codecademy.com/", false);
xhr.send();

console.log(xhr.status);
console.log(xhr.statusText);

synchronous xmlhttprequest

https://github.com/whatwg/fetch

@xgqfrms-GitHub xgqfrms-GitHub changed the title what's this mean ? fetch will be repalce xmlhttprequest ? what's this mean ? fetch will be replace xmlhttprequest ? Feb 17, 2017
@annevk
Copy link
Member

annevk commented Feb 18, 2017

It means you shouldn't pass false as the third argument of open(). This is a duplicate of #20.

@annevk annevk closed this as completed Feb 18, 2017
@xgqfrms-GitHub
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants