3 stable releases

2.0.0 Feb 3, 2020
1.0.1 Feb 10, 2019

#701 in WebAssembly

MIT/Apache

11KB

document-ready

crates.io version build status downloads docs.rs docs

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

~9MB
~174K SLoC