A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2
stars
4
forks
source link
Deferred calls shouldn't have a timeout. They should happen after the last element is added to the DOM, somehow. #111
Closed
JSideris closed 1 year ago
The purpose is to prevent flickering when the page loads, which is currently the behavior with the timeout implementation.
It's a tricky problem, but it's possible. Consider this:
dot.("body")
targets the dom.div(dot.defer(function(d){d.h("b")}))
requires the deferral to evaluate first.dot.defer(function(d){d.h("b")})
Sets up the deferral. This should be a special object that the parent element will know how to process.div
is rendered to the DOM with nothing in it (or maybe with a<dothtml-defer>
element in it).