This is client API (go to server)

Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Ot_nodeready

module Ot_nodeready : sig..end

Wait for a node to be inserted in the DOM.


let _ = nodeready node in Firebug.console##debug node

Known issues

Using it on a node that is never actually added in the DOM will make the node and the thread wakener kept in memory. Also, note that nodeready is fired only once (except if you add a new listener to it after triggering the first one).

val nodeready : #Dom.node Js.t -> unit Lwt.t