Expand description
Document ready listener for browsers.
§Examples
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
pub fn main() {
println!("waiting on document to load");
document_ready::ready().await;
println!("document loaded!");
}
Functions§
- ready
- Wait for the DOM to be loaded.