TL;DR this polyfill might poorly perform on already slow devices. It might be convenient to just test the API but it won't exactly produce the expected result.
Hint: use with care, not suggested for prod.
// please read this conversation before making any decision
// https://twitter.com/WebReflection/status/648925435120734208
var requestIdleCallback = requestIdleCallback || (function (rAF) {
// (C) Andrea Giammarchi - @WebReflection - Mit Style
function Deadline(timemout) {