#79, Disable async load for dynamically inserted scripts

This commit is contained in:
Alex Shpak 2019-10-03 13:56:41 +02:00
parent ff6ba4b1ae
commit 397ebbc2a4

View File

@ -57,6 +57,7 @@
function loadScript(src, callback) { function loadScript(src, callback) {
const script = document.createElement("script"); const script = document.createElement("script");
script.defer = true; script.defer = true;
script.async = false;
script.src = src; script.src = src;
script.onload = callback; script.onload = callback;