0.5.0 • Published 6 years ago

ps-ajaxqueue v0.5.0

Weekly downloads
24
License
-
Repository
github
Last release
6 years ago

PS - jQuery Ajax Queue

Simple Ajax request, avoiding repeated requests

Installation

npm install ps-ajaxqueue -D

Usage Javascript

let $PS = require('ps-ajaxqueue');

$PS.ajaxQueue({
	url: "https://api.ipify.org/?format=jsonp",
	dataType: "jsonp",
	clearQueueDelay: null
}).done(function (data) {
	console.log(data);
});

Usage Javascript

import { ajaxqueue } from 'ps-ajaxqueue';

const $PSAjax = ajaxqueue;

$PSAjax({
	url: "https://api.ipify.org/?format=jsonp",
	dataType: "jsonp",
	clearQueueDelay: null
}).done(function (data) {
	console.log(data);
});

clearQueueDelay: null // Defines the time in milliseconds where the request data will be cached. If "null" is passed the data will never be cleared

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago