ajax-worker
TypeScript icon, indicating that this package has built-in type declarations

1.2.13 • Public • Published

ajax-worker

How to Install

$ npm install ajax-worker --save

How to Use

import AjaxWorker from "ajax-worker";

AjaxWorker.fetch({
    url: "/somerequest.json",
    onSuccess: (response) => {
        // put your code here
    },
    onAbort: (request) => {
        // put your abort code here
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i ajax-worker

Weekly Downloads

9

Version

1.2.13

License

MIT

Unpacked Size

48.2 kB

Total Files

26

Last publish

Collaborators

  • dan2dev