document-ready

Crates.iodocument-ready
lib.rsdocument-ready
version2.0.0
sourcesrc
created_at2019-02-10 13:57:22.529553
updated_at2020-02-03 15:17:35.671205
descriptionDocument ready listener for browsers
homepage
repositoryhttps://github.com/yoshuawuyts/document-ready
max_upload_size
id113908
size27,945
Yosh (yoshuawuyts)

documentation

https://docs.rs/document-ready

README

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

Commit count: 17

cargo fmt