Dimitri Glazkov
Dimitri Glazkov
The main premise is that this library emphasizes bad ideas by throwing exceptions. It's sort of like a debug mode for your web app. Currently, I have two ideas for...
You still have to do that yourself, sadly. In your case, you'll flip it just before running the batch of "reads"
Yes. For example, currently, if you access element.offsetLeft in "write", nope will throw.
I am currently compiling a list of layout triggers (DOM props/methods that will cause synchronous layout/reflow) for Blink here: https://github.com/dglazkov/nope-js/blob/master/nope.js#L12
Other than this bug, is there a rough spec of `` anywhere?
Indeed. We had to figure this out for HTML Imports. In realistic network condition, waiting until everything loads is unlikely to result acceptable performance characteristics.
Thank you for spotting it, @Msa360 -- fixed.
@tabatkins for moar insight.
@domenic, do you have any experience with Karma or any of this stuff?
I'd say this should be prerequisite to writing any more code -- can't write code without writing tests :smiley: