Skip to content

serapath-archive/xhrpolyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published