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

[翻译]High Performance JavaScript(031)

Firebug
    Firefox is a popular browser with developers, partially due to the Firebug addon (available at http://www.getfirebug.com/), which was developed initially by Joe Hewitt and is now maintained by the Mozilla Foundation. This tool has increased the productivity of web developers worldwide by providing insights into code that were never before possible.
    对开发人员来说,Firefox是一个时髦的浏览器,部分原因是Firebug插件(http://www.getfirebug.com/)由Joe Hewitt首创现在由Mozilla基金会维护。此工具具有前所未有的代码洞察力,提高了全世界网页开发者的生产力。
    Firebug provides a console for logging output, a traversable DOM tree of the current page, style information, the ability to introspect DOM and JavaScript objects, and more. It also includes a profiler and network analyzer, which will be the focus of this section. Firebug is also highly extensible, enabling custom panels to be easily added.
    Firebug提供了一个控制台日志输出,当前页面的DOM树显示,样式信息,能够反观DOM和JavaScript对象,以及更多功能。它还包括一个性能和网络分析器,这是本节的重点。Firebug易于扩展,可添加自定义面板。
Console Panel Profiler  控制台面板分析器
    The Firebug Profiler is available as part of the Console panel (see Figure 10-1). It measures and reports on the execution of JavaScript on the page. The report details each function that is called while the profiler is running, providing highly accurate performance data and valuable insights into what may be causing scripts to run slowly.
    Firebug分析器是控制台面板的一部分(如图10-1)。它测量并报告页面中运行的JavaScript。当分析器运行时,报告深入到每个被调用函数的细节,提供高精确的性能数据和变量察看功能,(有助于)找出可能导致脚本运行变慢的原因。
Figure 10-1. FireBug Console panel
图 10-1  FireBug控制台面板
    One way to run a profile is by clicking the Profile button, triggering the script, and clicking the P


相关文档:

[翻译]High Performance JavaScript(011)

Repaints and Reflows  重绘和重排版
    Once the browser has downloaded all the components of a page—HTML markup, JavaScript, CSS, images—it parses through the files and creates two internal data structures:
    当浏览器下载完所有页面HTML标记,JavaScri ......

[翻译]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 ......

[翻译]High Performance JavaScript(016)

Regular Expression Optimization  正则表达式优化
    Incautiously crafted regexes can be a major performance bottleneck (the upcoming section, "Runaway Backtracking" on page 91, contains several examples showing how severe this can be), but there is a lot you can do to improve re ......

[翻译]High Performance JavaScript(019)

第六章  Responsive Interfaces  响应接口
    There's nothing more frustrating than clicking something on a web page and having nothing happen. This problem goes back to the origin of transactional web applications and resulted in the now-ubiquitous "please click only once" m ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号