aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-03 13:56:41 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-03 13:56:41 +0200
commit397ebbc2a49a3d22e709a69842805ccaee6eed78 (patch)
treee341ad4f0d5e8b59c0a5fdf62b8ffed0e9b71167
parentff6ba4b1ae680e51ead0588eb61c4c9037fb44ad (diff)
#79, Disable async load for dynamically inserted scripts
-rw-r--r--assets/search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/search.js b/assets/search.js
index 3cc9702..b104b41 100644
--- a/assets/search.js
+++ b/assets/search.js
@@ -57,6 +57,7 @@
function loadScript(src, callback) {
const script = document.createElement("script");
script.defer = true;
+ script.async = false;
script.src = src;
script.onload = callback;