Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> function loadScript(src) { let script = document.createElement('script'); script.src = src; script.async = false; document.body.append(script); } // long.js runs first because of async=false loadScript("https://www.w3docs.com/js/long.js"); loadScript("https://www.w3docs.com/js/small.js"); </script> </body> </html>