babbleon Posted January 25, 2018 Share Posted January 25, 2018 Hello, Why does the link to scene.js go below the canvas tag and not in <head> like other scripts? I'm not going anywhere with this, just I am curious (and not experienced in js). Thank you. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2018 Share Posted January 25, 2018 because the <head> tag is loaded before the page and the canvas is in the <body> page so when the engine is loaded it looks for a canvas, If the <head> is loaded before, it can not find the canvas. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
babbleon Posted January 25, 2018 Author Share Posted January 25, 2018 Simple answer to a simple question! Many thanks Dad72. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.