Why inline JavaScript is bad?

前端 未结 9 858
梦谈多话
梦谈多话 2020-11-29 08:13

It is always recommended to avoid inline Javascript codes by putting all codes in a JS file, which is included in all pages. I wonder, if this does not cause pe

9条回答
  •  再見小時候
    2020-11-29 09:12

    IMO it depends on the page. Sometimes for a specific page and script is small, it does not make sense to put in an external file.

提交回复
热议问题