GithubHelp home page GithubHelp logo

kevinvandijk / backbone.sync.ajaxqueue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbutz/backbone.sync.ajaxqueue

0.0 1.0 0.0 70 KB

An overloaded version of Backbone.Sync that uses the JQuery AJAX Queue plugin

backbone.sync.ajaxqueue's Introduction

Backbone.Sync using jQuery AJAX Queue (AJAX Manager) Plugin

This small JavaScript file can be included after Backbone.js on a page to overload the default Backbone.Sync and have it use the AJAX Manager plugin (http://plugins.jquery.com/project/AjaxManager)

Usage

Just include the JavaScript file after Backbone.js, jQuery, and the AJAX Manager files and everything will work.

Defaults

By default AJAX Manager is setup with the following options:

  • queue: true
  • cacheResponse: false
  • preventDoubleRequests: true
  • maxRequests: 5

This means that AJAX requests will be placed in a FIFO (First In, First Out) queue. Successful responses will not be cached. It will try and prevent double requests. No more than 5 requests will be going on at the same time. If you want to change these options you can open the JavaScript file and there is an section clearly marked. The options can be found here: http://www.protofunc.com/scripts/jquery/ajaxManager/

backbone.sync.ajaxqueue's People

Contributors

jbutz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.