- 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
- 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
- 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
《[高性能JavaScript编程].(High.Performance.JavaScript).Nicholas.C.Zakas.中英对照版》.pdf
《高性能 JavaScript 编程》
原文2010 年3 月23 日首发,刘新翻译,欢迎指正!
/situdesign
[原版] [译文]
第一章 Loading and Execution 加载和运行 2
第二章 Data Access 数据访问 26
第三章 DOM Scripting DOM 编程 56
第四章 Algorithms and Flow Control 算法和流程控制 104
第五章 Strings and Regular Expressions 字符串和正则表达式 139
第六章 Responsive Interfaces 响应接口 184
第七章 Ajax 异步JavaScript 和XML 216
第八章 Programming Practices 编程实践 261
第九章 Building and Deploying High-Performance JavaScript Applications 279
第十章 Tools 工具 306
第一章 Loading and Execution 加载和运行
JavaScript performance in the browser is arguably the most important usability issue facing developers. The
problem is complex because of the blocking nature of JavaScript, which is to say that nothing else can happen
while JavaScript code is being executed. In fact, most browsers use a single process for both user interface (UI)
updates and JavaScript execution, so only one can happen at any given moment in time. The longer JavaScript
takes to execute, the longer it takes before the browser is free to respond to user input.
JavaScript 在浏览器中的性能,可认为是开发者所要面对的最重要的可用性问题。此问题因JavaScript
的阻塞特征而复杂,也就是说,当JavaScript 运行时其他的事情不能被浏览器处理。事实上,大多数浏览
器使用单进程处理UI 更新和JavaScript 运行等多个任务,而同一时间只能有一个任务被执行。JavaScript
运行了多长时间,那么在浏览器空闲下来响应用户输入之前的等待时间就有多长。
On a basic level, this means that the very presence of a script tag is enough to make the page wait for the
script to be parsed and executed. Whether the actual JavaScript code is inline with the tag or included in an
external file is irrelevant; the page download and rendering must stop and wait for the script to complete before
proceeding. This is a necessary part of the page’s life cycle bec
您可能关注的文档
- 《Python核心编程(中文第二版)带目录》.pdf
- 《Python核心编程(第二版)-习题答案》.pdf
- 《QBT 3550-1999 家用编织机》.pdf
- 《QCon上海2015-移动平台的3D编程可以更简单-董一凡》.pdf
- 《QCT463-1999汽车用液力变矩器技术条件》.pdf
- 《QCT557-1999汽车用液力变扭器台架试验方法》.doc
- 《QSH 0244-2016 川东北酸性天然气气藏采气工程方案设计编写推荐作法》.pdf
- 《Qt编写串口通信程序》.pdf
- 《Qt编写串口通信程序图文详解》.pdf
- 《Q基于L6561高功率因数反激变换器的设计方程》.doc
- 贵州省遵义市五校联考2026届语文高三第一学期期末考试模拟试题含解析.doc
- 2026届四川省金堂中学语文高三第一学期期末经典试题含解析.doc
- 2026届山东省武城县第二中学语文高三第一学期期末联考模拟试题含解析.doc
- 2026届昌都市重点中学语文高三上期末综合测试试题含解析.doc
- 2026届内蒙古太仆寺旗宝昌一中英语高三第一学期期末经典试题含解析.doc
- 2026届丹东市重点中学高三语文第一学期期末教学质量检测模拟试题含解析.doc
- 内蒙古包头市第九中学2026届语文高三第一学期期末学业水平测试试题含解析.doc
- 四川省泸县第一中学2026届高三语文第一学期期末达标检测模拟试题含解析.doc
- 2026届湖南省洞口县数学高三上期末学业质量监测试题含解析.doc
- 2026届河南省郑州市金水区实验中学语文高三上期末综合测试模拟试题含解析.doc
文档评论(0)