TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Essential performance best practices for jQuery
20 点
作者
samgro
将近 14 年前
4 条评论
alexh
将近 14 年前
Collapse
I was under the impression that jQuery cached selectors, so the advice "Cache jQuery Objects", while smart for many reasons, would not actually affect performance much at all.<p>Was I wrong?
评论 #2893251 未加载
whichdan
将近 14 年前
Collapse
So is it generally agreed that $(window).load() should be used over $(document).ready() in most cases?
评论 #2893219 未加载
samgro
将近 14 年前
Collapse
Oldie but goodie. Point #7, "Leverage Event Delegation", was particularly helpful for me.
评论 #2893125 未加载
jasonwatkinspdx
将近 14 年前
Collapse
A lot of this is outdated.
评论 #2893354 未加载