mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +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) {
|
||||
const script = document.createElement("script");
|
||||
script.defer = true;
|
||||
script.async = false;
|
||||
script.src = src;
|
||||
script.onload = callback;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user