Skip to Main Content
Web 效能優化日誌 Volume 2
book

Web 效能優化日誌 Volume 2

by Stoyan Stefanov
July 2013
Intermediate to advanced content levelIntermediate to advanced
240 pages
4h 11m
Chinese
GoTop Information, Inc.
Content preview from Web 效能優化日誌 Volume 2
我們渴求強大且可靠的方法來判斷 web 應用程式的效能與使用者體驗。但多年來,我們
只能仰賴各種近似的技巧:協定層級的合成(protocol-level synthesis)與測量、古怪的瀏
覽器自動化、脆弱的事件指令稿撰寫(event scripting),而這些都伴隨著一種預感:我們
尚未
相當程度地
捕捉到使用真實瀏覽器的真實使用者之行為。
這裡要介紹給你今年度最令人感興趣的開放原始碼專案:PhantomJShttp://phantomjs.
org/)。感謝 Ariya Hidayathttp://ariya.olabs.com/),為每位 web 開發者的工具箱提供
了一項可貴的新工具:一個無外殼(headless,即沒有 GUI,透過命令列來取用)但功能
完整的 WebKit 瀏覽器,它可輕易地從命令列來啟動,然後使用 JavaScript 來撰寫一些指
令稿(scripts)以進行操作。
我曾使用 PhantomJS 來補強 confess.jshttps://github.com/jamesgpearce/confess),這是一
個小型的程式庫,它使得為了各種目的分析網頁與 apps 的工作變得容易。它目前有兩個
主要功能:提供簡單的頁面效能評測器(page performance proles),並產生 app 的快取
清單(cache manifests)。讓我們快速地介紹它們一下吧。
效能總結
安裝了以後,我們能夠使用 confess.js 來做的最簡單的事情是給定一個 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

建構Android應用程式--使用HTML、CSS和JavaScript 第二版

建構Android應用程式--使用HTML、CSS和JavaScript 第二版

Jonathan Stark, Brian Jepson
高性能Spark

高性能Spark

Holden Karau, Rachel Warren
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9789862768587