下载  >  开发技术  >  Javascript  > 高性能JavaScript(High Performance JavaScript )

高性能JavaScript(High Performance JavaScript ) 评分:

英文高清PDF版。 《高性能JavaScript》揭示的技术和策略能帮助你在开发过程中消除性能瓶颈。你将会了解如何提升各方面的性能,包括代码的加载、运行、DOM 交互、页面生存周期等。雅虎的前端工程师 Nicholas C. Zakas 和其他五位 JavaScript 专家介绍了页面代码加载的最佳方法和编程技巧,来帮助你编写更为高效和快速的代码。你还会了解到构建和部署文件到生产环境的最佳实践,以及有助于定位线上问题的工具。如果你使用 JavaScript 构建交互丰富的 Web 应用,那么 JavaScript 代码可能是造成你的Web应用速度变慢的主要原因。
High Performance JavaScript Www.woweBook.com High Performance JavaScript Nicholas c. zakas ORE|LLY° Beijing· ambridge: Farnham. KoIn. Sebastopol· Taipei· Tokyo High Performance JavaScript by nicholas C. Zakas Copyright@ 2010 Yahoo!, Inc. All rights reserved Printed in the United States of america Published by O Reilly Media, Inc, 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions arealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformationcontactour corporate/institutionalsalesdepartment:(800)998-9938orcorporate@oreilly.com Editor: Mary e. treseler Indexer: Fred Brown Production editor: Adam zaremba Cover designer Karen montgomery Copyeditor: Genevieve d'Entremont Interior Designer: David Futato Proofreader: Adam zaremba Illustrator: Robert romano Printing History: March 2010 First edition Nutshell Handbook, the Nutshell Handbook logo, and the O Reilly logo are registered trademarks of O'Reilly Media, Inc. High Performance JavaScript, the image of a short-eared owl, and related trade dress are trademarks of o Reilly media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as rademarks. Where those designations appear in this book, and O'Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information con- tained herein Repk his book uses RepKoverTM, a durable and flexible lay-flat binding ISBN:978-0-596-80279-0 1268245906 This book is dedicated to my family, Mom, Dad, and greg, whose love and support have kept me going through the years Table of contents Preface XI 1. Loading and execution Script Positioning Grouping scripts Nonblocking Scripts Deferred Scripts Dynamic Script Elements XmlhtTprequesT Script lnjection Recommended Nonblocking Pattern 10 umma 14 2. Data access 15 Managing Scope Scope Chains and Identifier resolution Identifier Resolution performance 19 Scope chain augmentation Dynamic scopes Closures, Scope, and memory Object Memb 7 Prototypes 27 Prototype chains 29 Nested members 30 Cach ng Object Member value 31 Summary 33 3. DOM Scripting DOM in the browser World herently Slo 36 DOM Access and Modification 36 innerHTML Versus dom methods 37 Cloning nodes HTML Collections 42 Walking the dom 46 Repaints and reflows 50 When Does a Reflow Happen? 51 Queuing and Flushing Render Tree Changes 51 Minimizing repaints and Reflows 52 Caching layout information 56 Take elements out of the flow for animations 56 IE and hover Event Delegation 57 Summary 59 Algorithms and Flow Control 61 Loops 61 Types of loops p perfo 63 Function-Based iteration 67 Conditionals 68 if-elseⅤ ersus switch Optimizing if-else up table Recursion 73 Call stack limits 74 Recursion patterns Iteration Memoization Summary 79 5. Strings and Regular Expressio 81 String concatenation 81 Plus(+)and Plus-Equals(+=)Operators Array Joining 84 String prototype concat Regular Expression optimization How Regular Expressions Work Understanding Backtracking RI unawa ly Backtracking 91 A Note on Benchmarking 96 More Ways to Improve Regular Expression Efficiency 96 When Not to Use regular Expressions String Trimming 9 Trimming with Regular Expressions ⅶ ii Table of Contents

...展开详情
2012-05-31 上传 大小:4.33MB
举报 收藏
分享

评论 下载该资源后可以进行评论 共1条

guoxze 不错,介绍了很多提高JS性能的技巧
2014-05-27
回复
High Performance Javascript

NULL 博文链接:https://sailinglee.iteye.com/blog/1144283

立即下载
高性能javascript

高性能javascript,高清,读好书,多读书,祝大家在前端的路上越走越好!

立即下载
高性能JavaScript编程-高清-带书签.pdf

高性能JavaScript编程-高清-带书签.pdf高性能JavaScript编程-高清-带书签.pdf高性能JavaScript编程-高清-带书签.pdf高性能JavaScript编程-高清-带书签.pdf

立即下载
《高性能JavaScript》(尼古拉斯·泽卡斯).pdf

个人收集电子书,仅用学习使用,不可用于商业用途,如有版权问题,请联系删除!

立即下载
高性能JavaScript-中文版

高性能JavaScript-中文版,pdf扫描版本,高清版本,内含目录。

立即下载
高性能JavaScript + 高清+目录 PDF

高性能JavaScript + 高清+目录 PDF,JS学习高级书籍,

立即下载
高性能JavaScript 英文版 高清

高性能JavaScript英文原版 讲解了如何高效高性能的完成JavaScript编程

立即下载
C++ High Performance

C++ High Performance Viktor Sehr, Björn Andrist January 2018 Book Description C++ is a highly portable language and can be used to write complex applications and performance-critical code. It has evolved over the last few years to become a modern and expressive language. This book will guide you th

立即下载
High Performance JavaScript 无水印原版pdf

High Performance JavaScript 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

立即下载
High Performance JavaScript

High Performance JavaScript 作者:Nicholas C. Zakas 学习javascript非常值得一看的资料

立即下载
高性能的javascript

高性能的javascript电子档,txt格式,需要前端基础不错做深入研究学习,但是部分知识比较老旧,工作中并不是很实用,但是还是可以学习下,做提高

立即下载