Skip to content

dan2dev/ajax-worker

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published