[][src]Function div::load_js_module

pub fn load_js_module(code: String) -> Result<PendingScript, DivError>

Experimental: This API is experimental and my not be included in later versions Asynchronously loads a JS module by appending a script tag to the head with th e provided string as content. Poll the future until it resolves to know when the script has been loaded for sure. In contrast to the more conventional Future design, the JS module will be loaded even if the Future is not polled. The Future only checks if it has already finished.