pub fn js_init()Expand description
Register this crate’s Custom Elements in the browser’s current session.
This must occur before calling any public API methods on these Custom
Elements from JavaScript, as the methods themselves won’t be defined yet.
By default, this crate does not register PerspectiveViewerElement (as to
preserve backwards-compatible synchronous API).