易截截图软件、单文件、免安装、纯绿色、仅160KB

[翻译]High Performance JavaScript(027)

第九章
Building and Deploying High-Performance JavaScript Applications
创建并部署高性能JavaScript应用程序
    According to a 2007 study by Yahoo!'s Exceptional Performance team, 40%–60% of Yahoo!'s users have an empty cache experience, and about 20% of all page views are done with an empty cache (http://yuiblog.com/blog/2007/01/04/performance-research-part-2/). In addition, another more recent study by the Yahoo! Search team, which was independently confirmed by Steve Souders of Google, indicates that roughly 15% of the content delivered by large websites in the United States is served uncompressed.
    根据Yahoo!卓越性能团队在2007年进行的研究,40%-60%的Yahoo!用户没有使用缓存的经验,大约20%页面视图不使用缓存(http://yuiblog.com/blog/2007/01/04/performance-research-part-2/)。另外,由Yahoo!研究小组发现,并由Google的Steve Souders所证实的一项最新研究表明,大约15%的美国大型网站所提供的内容没有压缩。
    These facts emphasize the need to make sure that JavaScript-based web applications are delivered as efficiently as possible. While part of that work is done during the design and development cycles, the build and deployment phase is also essential and often overlooked. If care is not taken during this crucial phase, the performance of your application will suffer, no matter how much effort you've put into making it faster.
    这些事实强调有必要确保那些基于JavaScript的网页应用尽量高效地发布。虽然部分工作在设计开发过程中已经完成,但构建和部署过程也很重要且往往被忽视。如果在这个关键过程中不够小心,你应用程序的性能将受到影响,无论你怎样努力使它更快。
    The purpose of this chapter is to give you the necessary knowledge to efficiently assemble and deploy a JavaScript-based web application. A number of concepts are illustrated using Apache Ant, a Java-based build tool that has quickly become an industry standard for building applications for the Web. Toward the end of the chapter, a custo


相关文档:

javascript动态装入XML数据


使用javascript创建Microsoft XML DOM,就可以完成这一工作.
// 装入数据.
var source = new ActiveXObject("Microsoft.XMLDOM");
source.async = false
source.load("history.xml");
// 装入样式表.
var stylesheet = new ActiveXObject("Microsoft.XMLDOM");
stylesheet.async = false
stylesheet.load( ......

[翻译]High Performance JavaScript(012)

第四章  Algorithms and Flow Control  算法和流程控制
    The overall structure of your code is one of the main determinants as to how fast it will execute. Having a very small amount of code doesn't necessarily mean that it will run quickly, and having a large amount of code ......

[翻译]High Performance JavaScript(013)

Conditionals  条件表达式
    Similar in nature to loops, conditionals determine how execution flows through JavaScript. The traditional argument of whether to use if-else statements or a switch statement applies to JavaScript just as it does to other languages. Since different b ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号