beradrian / jsbandwidth

Test bandwidth inside your browser
81 stars 21 forks source link

r.then is not a function #7

Closed TiagoGouvea closed 8 years ago

TiagoGouvea commented 8 years ago

I've got a Uncaught TypeError: r.then is not a function, after the warning Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience..

And then, the script stop running.

Testing on chrome with local javascript file.

beradrian commented 8 years ago

Are you running this from a server? This is not designed to work locally (with file://).

TiagoGouvea commented 8 years ago

I'm runnig in http://localhost/myproject/, the downloadUrl are remote.

beradrian commented 8 years ago

I released a new version. Do you still have the issue?

beradrian commented 8 years ago

I moved XhrPromise to an external package https://github.com/beradrian/xhrpromise. Now you shouldn't have this issue anymore. I will close it, but please feel free to comment to reopen it.