pub fn on_online(f: impl FnMut(Event) + 'static) -> EventCallback
Add a online event handler at the window level.
online
This only has an effect on WASM targets.