Skip to content

Commit

Permalink
fixed early timeouts for some clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jgnewman committed May 14, 2012
1 parent 2638a66 commit dc8e71b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion priv/admin/js/pjax.js
@@ -1,9 +1,17 @@
// jquery.pjax.js
// copyright chris wanstrath
// https://github.com/defunkt/jquery-pjax
// Modified by Basho Technologies to fix a timeout issue for some clients.

(function($){

// The following variable is in milliseconds.
// It controls the ajax timeouts for page fetching attempts.
// The pjax default was 650 but this is too early in some use cases.
// We're setting it high here to account for most foreseeable circumstances.
// - Basho
var ajaxTimeout = 10000;

// When called on a link, fetches the href with ajax into the
// container specified as the first parameter or with the data-pjax
// attribute on the link itself.
Expand Down Expand Up @@ -180,7 +188,7 @@ var pjax = $.pjax = function( options ) {


pjax.defaults = {
timeout: 650,
timeout: ajaxTimeout, // was previously 650 - Basho
push: true,
replace: false,
// We want the browser to maintain two separate internal caches: one for
Expand Down

0 comments on commit dc8e71b

Please sign in to comment.