- 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
- 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
- 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
《[高性能JavaScript编程].(High.Performance.JavaScript).Nicholas.C.Zakas.中英对照版[ED2016.COM]》.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 b
您可能关注的文档
- 《VB+ACCESS进销存管理系统毕业论文》.doc
- 《VB操作题集》.doc
- 《VC零件交易管理系统毕业论文》.doc
- 《VHDL——出租车计价器》.doc
- 《VP8400智能调度车载终端驾驶员培训手册-》.doc
- 《WebLogic12C安装笔记》.doc
- 《WIN8 4.2升4.4系统》.doc
- 《Windows域环境下部署ISA_Server_2016防火墙》.doc
- 《XK3118T12系列称重仪表使用说明书(柯力中文)》.doc
- 《XSB5系列称重显示控制仪使用说明》.doc
- 2023年11月2024云南玉溪市通海县融媒体中心提前公开招聘播音员2人笔试历年高频考点难、易错点摘选答案详解(附后).docx
- 2023年10月重庆市江津区事业单位面向服务期满考核合格“三支一扶”人员公开招考12名工作人员笔试历年高频考点-难、易错点荟萃-附带答案详解.docx
- 2023年重庆市黔江区事业单位招考聘用71人笔试历年高频考点(考察重点荟萃)答案解析附后.docx
- 2023年10月成都市温江区“蓉漂人才荟”面向高校毕业生考核招考10名事业人员笔试历年高频考点-难、易错点荟萃-附带答案详解.docx
- 2023年广东深圳实验学校高中园选聘教师8人笔试历年高频考点-难、易错点荟萃-附带答案详解.docx
- 2023年四川成都市新津区中医医院医共体单位招考聘用13人笔试历年高频考点难、易错点摘选答案详解(附后).docx
- 2023年11月吉林省镇赉县事业单位公开招聘44名专业化人才笔试历年高频考点(考察重点荟萃)附答案详解.docx
- 2023年10月广东省信宜市公开选调26名公务员笔试历年高频考点-难、易错点荟萃-附带答案详解.docx
- 2023年12月2024年甘肃省妇幼保健院(甘肃省中心医院)招考聘用331人笔试历年高频考点难、易错点摘选答案详解(附后).docx
- 2023年10月贵州省安顺市平坝区面向社会公开招考17名城市社区工作者笔试历年高频考点-难、易错点荟萃-附带答案详解.docx
文档评论(0)