TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Essential performance best practices for jQuery

20 点作者 samgro将近 14 年前

4 条评论

alexh将近 14 年前
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 年前
So is it generally agreed that $(window).load() should be used over $(document).ready() in most cases?
评论 #2893219 未加载
samgro将近 14 年前
Oldie but goodie. Point #7, "Leverage Event Delegation", was particularly helpful for me.
评论 #2893125 未加载
jasonwatkinspdx将近 14 年前
A lot of this is outdated.
评论 #2893354 未加载