Skip to content

An ajax library you need a microscope to see

License

Notifications You must be signed in to change notification settings

havard024/nanoajax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An ajax library you need a microscope to see

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.2%
  • Shell 3.8%