document.ready inside body tag

前端 未结 2 1501
迷失自我
迷失自我 2021-01-13 12:19

I have a web app that has a universal HTML header include, so I\'d like to put page-specific scripts in each page instead of having it load for everything. I tried putting <

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 12:46

    Yahoo recommends putting all scripts at the end of your document for performance - http://developer.yahoo.com/performance/rules.html

提交回复
热议问题