Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft: Think of dialog to confirm whether to load JupyterLight
This is not perfect, in particular the `confirm(...)` is a blocking call, which is not supposed to be used in a OnClik handler as an onclick handler need to respond fast. I think this need to be refactored into utilities functions, and setTimeout(0, callback), and/or Promises. That way the onClick finishes immediately and does not violate the timeout limit. As noted in the comment, the navigator api is experimental, so it woudl be good to test properly. In Web Inspector (Firefox and Chome at least), it is possible to artificially throttle the connection to test the logic.
- Loading branch information