diff --git a/Cargo.lock b/Cargo.lock index 320bb992..ffdccef6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -877,6 +877,7 @@ dependencies = [ "log", "serde", "wasm-bindgen-futures", + "web-sys", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 18edebdb..601b4753 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,9 @@ env_logger = "0.10" [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen-futures = "0.4" +# to access the DOM (to hide the loading text) +[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] +version = "0.3.4" [profile.release] opt-level = 2 # fast and small wasm diff --git a/index.html b/index.html index 872b4f4c..154800de 100644 --- a/index.html +++ b/index.html @@ -114,7 +114,6 @@ transform: rotate(360deg); } } - @@ -123,6 +122,14 @@ + +
+

+ Loading… +

+
+
+