nope-js
nope-js copied to clipboard
A library that's kind enough to tell you "No" when you need it.
The fastdom project does a very similar read/write distinction, maybe there's an opportunity to have a **fastdom debug** mode, where `nope.js` is used to throw when dumb things are happening....
Something better than just "nope". Hopefully, giving the dev some clue on what's failing.
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/dom/Document.cpp&rcl=1427974699&l=1900
Maybe we could measure how long the rAF queue is and throw if it's getting too long?
Suggest flashing the screen red so people can quickly see if layout thrashing et al are at play. Feel free to assign to me :)