Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 373 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 373 Bytes

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
    }
});