2 ms·
Very hard to integrate that even in a very simple app of mine (js-wise at least). First, I can't use fastdom-strict.js to help with the integration, because of
by onli 11y ago
Very hard to integrate that even in a very simple app of mine (js-wise at least).
First, I can't use fastdom-strict.js to help with the integration, because of course I'm using other scripts (pace.js, jquery, Magnific Popup, a detail-polyfill and Flot). Am I missing something here to apply that selectively?
But also my own code would need transformation. It's quite common to have Dom reads and writes on the same line, all of them would have to be separated and variables be created… That is not impossible much work, but together with the other libraries not nice.
It would be way better if this would patch the existing functions (maybe on jQuery side?) to automatically batch DOM reads and writes, without having to take care of that at the side of the developer. But the asynchronity introduced by that concept would break a lot, this would then need callbacks or promises (I think at least?).