diff --git a/src/pyodide.js b/src/pyodide.js index 0c288bb83..1007929dc 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -82,7 +82,7 @@ var languagePluginLoader = new Promise((resolve, reject) => { script.src = url; script.onload = (e) => { onload(); }; script.onerror = (e) => { onerror(); }; - self.document.body.appendChild(script); + self.document.head.appendChild(script); } else if (self.importScripts) { // webworker try { self.importScripts(url);