Skip to content

Instantly share code, notes, and snippets.

Avatar
🙊
made you look

andreas andreasvirkus

🙊
made you look
View GitHub Profile
@andreasvirkus
andreasvirkus / resize.js
Last active Sep 14, 2017 — forked from arturparkhisenko/resize.js
resize and throttle with rAF
View resize.js
//https://developer.mozilla.org/en-US/docs/Web/Events/resize
(function() {
var throttle = function(type, name, obj_) {
var obj = obj_ || window;
var running = false;
var func = function() {
if (running) {
return;
}