+ 2

JS from <head> dose not loading

I have written a script in JS which dynamically change all content of a HTML webpage including css, js and html. Everything works good, but the problem is. When I change the code dynamically, external JS codes mentioned in the head tag dose not get loaded. How can I make all the external js to load after dynamically changing html contents? It's needed to be mentioned that I'm changing the head tag dynamically too.

19th Apr 2019, 4:17 PM
Washiul Alam Sohan
Washiul Alam Sohan - avatar
2 Antworten
+ 9
Wrap it in the function : window.onload = function ( ) { / / Your code here... }
19th Apr 2019, 6:31 PM
Arushi Singhania
Arushi Singhania - avatar
+ 4
Send the code...
19th Apr 2019, 5:25 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar