Why Asp.Net MVC 5 put @Scripts.Render(“~/bundles/jquery”) at the bottom in _Layout.cshtml?

前端 未结 4 1777
臣服心动
臣服心动 2021-02-04 02:18

I put

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 02:33

    It's a best practice to load your javascript files after every possible HTML element.

    Knowing this, I would place your document ready handler after loading all libs.

     

提交回复
热议问题