#[
autogenerated by docgen
loc: /build/nim/src/nim/lib/js/dom.nim(22, 17)
rdoccmd: -b:js -r:off
]#
import std/assertions
import "/build/nim/src/nim/lib/js/dom.nim"
{.line: ("/build/nim/src/nim/lib/js/dom.nim", 22, 17).}:
  proc example() = echo "5 seconds after document ready"
  proc domReady(e: Event) = discard setTimeout(example, 5_000) # Document is ready.
  document.addEventListener("DOMContentLoaded", domReady)

