app/assets/javascripts/pace/pace.js in pace-rails-0.0.8 vs app/assets/javascripts/pace/pace.js in pace-rails-0.0.9

- old
+ new

@@ -53,13 +53,17 @@ var last, tick; last = now(); tick = function() { var diff; diff = now() - last; - last = now(); - return fn(diff, function() { - return requestAnimationFrame(tick); - }); + if (diff >= 33) { + last = now(); + return fn(diff, function() { + return requestAnimationFrame(tick); + }); + } else { + return setTimeout(tick, 33 - diff); + } }; return tick(); }; result = function() { \ No newline at end of file