should all javascript go into a separate js file

后端 未结 6 1306
别跟我提以往
别跟我提以往 2020-12-15 12:26

What is the criteria if certain jquery or regular javascript should go inline or in a separate js file?

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 13:03

    We use a combination at work - External files for any static JS, and embedded in the page for JS that we build for every page (DotNetNuke, so we can't predict what controls will be named clientside).

提交回复
热议问题