+ 3

Internal vs external JS

I see a lot of wonderful programmers on here using internal JS. I’m just curious as to know why not use external JS ? - A beginner @ JS

3rd May 2024, 4:23 PM
Javed Muckett
Javed Muckett - avatar
6 Respuestas
+ 6
I imagine most use it here because they can put it at the bottom of the code meaning the system has to load it all in order. If you use the JS tab, then you have to wrap your code in a window.onload() so the JS part waits for the HTML to load first.
3rd May 2024, 5:11 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
What does that mean external JS?
3rd May 2024, 4:41 PM
JaScript
JaScript - avatar
+ 3
JaScript using javascript in a seprate file rather than using it inside the <script> container inside HTML file.
3rd May 2024, 4:59 PM
Javed Muckett
Javed Muckett - avatar
+ 3
Ausgrindtube oh okay ! I dont know about window.onload() as yet 😅
3rd May 2024, 5:29 PM
Javed Muckett
Javed Muckett - avatar
0
Bonjour
4th May 2024, 8:20 PM
SEÏF AL-NASSOUR MAHAMAT SOULEYMANE
SEÏF AL-NASSOUR MAHAMAT SOULEYMANE - avatar
0
Yee
5th May 2024, 5:08 AM
Virender Kumar
Virender Kumar - avatar