xhrpolyfill

1.4.1 • Public • Published

xhrpolyfill

cross browser xhr object

USAGE

var xhr
 
var XMLHttpRequest = require('xhrpolyfill') // polyfills window.XMLHttpRequest
 
xhr = new XMLHttpRequest()
// same as
xhr = XMLHttpRequest()
// same as
xhr = new window.XMLHttpRequest() // polyfilled by the require call above
<!-- Can be used via script tag too after it has been "browserified" -->
<script src="https://wzrd.in/standalone/xhrpolyfill"></script>

Recommendation

If you search for a convenient cross-browser way to make all kinds of AJAX Requests,
I recommend you to check out minixhr

Readme

Keywords

Package Sidebar

Install

npm i xhrpolyfill

Weekly Downloads

0

Version

1.4.1

License

ISC

Last publish

Collaborators

  • serapath