Skip to content

Instantly share code, notes, and snippets.

View iplus26's full-sized avatar
:shipit:
Looking for fun

Ivan Jiang iplus26

:shipit:
Looking for fun
  • Tencent
View GitHub Profile
@paulirish
paulirish / rAF.js
Last active November 5, 2025 07:57
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
(function($) {
// Used by dateinput
$.expr = {':': {}};
// Used by bootstrap
$.support = {};
// Used by dateinput
$.fn.clone = function(){
var ret = $();