Document ready listener for browsers.
use document_ready::document_ready;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
pub fn main() {
println!("waiting on document to load");
await!{document_ready()};
println!("document loaded!");
}
$ cargo add document-ready
Want to join us? Check out our The "Contributing" section of the guide and take a look at some of these issues:
MIT OR Apache-2.0