3 stable releases
2.0.0 | Feb 3, 2020 |
---|---|
1.0.1 | Feb 10, 2019 |
#858 in WebAssembly
11KB
document-ready
Document ready listener for browsers.
Usage
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!");
}
Installation
$ cargo add document-ready
Contributing
Want to join us? Check out our The "Contributing" section of the guide and take a look at some of these issues:
License
MIT OR Apache-2.0
Dependencies
~7.5–10MB
~184K SLoC