Category : preload

How does the use of the rel="preload" directive influences the window.onload event? Lets say I have the following code: !DOCTYPE html> <html> <head> <script> window.onload = () => { console.log("page loaded") }; </script> <link rel="preload" as="image" href="othersite.com/myimg.jpg" /> <title>Website</title> </head> <body> <h1>Heading for the content below</h1> <p>Text text text</p> <img src="othersite.com/myimg.jpg" /> </body> </html> Is ..

Read more

After creating an AdonisJS app, I get following error message when trying to run: SyntaxError: Unexpected token ‘…’ 1 anonymous C:[email protected]ndex.js:376 2 Ignitor._loadPreLoadFiles C:[email protected]ndex.js:368 Application crashed, make sure to kill all related running process, fix the issue and re-run the app Checked the mentioned index.js file (unedited), and following can be found at the referenced ..

Read more