The Chrome Page becomes unresponsive when I attach my JavaScript file to my HTML file and as soon I remove my .js
file the page again start to run properly. I am having issue with live server not working while attached JavaScript file.Previously it was working properly but suddenly it stopped working following the same methodology using script tag.live server stopped working giving message chrome stopped responding
Deepak Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
Without seeing your code, it’s difficult to give this a valuable answer. I can provide some tips though:
- Have you tried to add console.log() calls in your code? It can be extremely useful to help find out if your code is running at all, or where the problem is occurring
- Try a different .js file. It could be the issue is perhaps malformed HTML, or it could be your particular .js file
- The previous might help with this: Try making sure the file structure is accessible (your files are all located in the right folders)
As I said in the beginning, it’s difficult to help more than this without seeing your code or having a better description of your problem.
Ross LaBrant is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2