4465 shaares
1 résultat
taggé
DOM
function lazyRender(el, html) {
let cloneEl = el.cloneNode();
cloneEl.innerHTML = html;
window.requestAnimationFrame(function(){
morphdom(el, cloneEl);
});
};