Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 823 Bytes

README.md

File metadata and controls

53 lines (31 loc) · 823 Bytes

nanoajax

Build Status

An ajax library you need a microscope to see.

Weighs in at 356 bytes gzipped, 534 bytes minified. It is very basic, but cross-browser compatible

Install

Can be used via browserify:

npm install nanoajax
var nanoajax = require('nanoajax')

Or you can use the global script:

<script src="/nanoajax.min.js"></script>

(You can build that script with: npm install -g uglify-js && ./make)

Use

GET

nanoajax.ajax('/some-get-url', function (code, responseText) {

})

POST

nanoajax.ajax('/some-post-url', 'post=content&args=yaknow', function (code, responseText) {

})

License

MIT found in LICENSE file.