0
[PROBLEM] JS needs to be moved to script tag in Sololearn Web
When I run someones code, and it has a lot of javascript, Or when I run my codes that have alot of javascript, Or code that has DOM. It doesn't seem to work, An error in the console either says thisFunction() is not defined or (for DOM) Cannot set atributes of none This leads me to believe that the javascript is not run in the Head section, but rather at the end of the code, This is a simple fix by just changing the location of the script src. Thanks
4 Answers
+ 1
Gurseerit Singh Chahal
Post link to code so everyone can review your statement.
0
Ipang this is abt sololearn external js, we can't change the location of that
- 1
Need to spread this ...
https://www.sololearn.com/post/90825/?ref=app