~/scratch/wrong$ cat ./index.html <!doctype html> <html> <head> <script src="otherfile.js"></script> </head> <body> <p>otherfile.js did not run</p> </body> </html> ~/scratch/wrong$ cat ./otherfile.js window.onload = (() => { document.querySelector("p").textContent = "wrong. (otherfile.js ran)"; });