mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 11:29:28 +00:00
#79, Disable async load for dynamically inserted scripts
This commit is contained in:
parent
ff6ba4b1ae
commit
397ebbc2a4
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user