Skip to content

carlhopf/rafqueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rafqueue

batch together calls to window.requestAnimationFrame

improves performance on older devices

const rafqueue = require('rafqueue');

var id = rafqueue.push(function () {
  document.body.innerHTML = 'ts ' + Date.now();
});

rafqueue.cancel(id);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published