Documentation ¶
Rendered for js/wasm
Overview ¶
Package onload provides a minimal, cross-browser document onload trigger for GopherJS. It is adapted from http://stackoverflow.com/a/9899701/13860
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ready ¶
func Ready(fn func())
Ready registers a function to fire when the page is loaded. This is effectively the same as jQuery's $.ready(), but written in Go, and without the bloat of jQuery. Ready() may be called multiple times, and once the document is ready, registered functions will be called in registration order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.