Skip to content

Instantly share code, notes, and snippets.

Avatar
😶
boop

andreas andreasvirkus

😶
boop
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;
}
You can’t perform that action at this time.