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
64
   
第十一章
負載資料量(Payload
將這些頁面(http://wh.yslow.org/css3-logo-payload)架設在本地端的 Apache 伺服器
上,我能夠藉由
curl
http://curl.haxx.se/)以壓縮或未壓縮的形式(
Accept-Encoding:
gzip,deate
)來截取它們,為 CSS3 data URI 的頁面取得內容長度(content length),
而真實圖像的 URL 顯然沒有壓縮。經由壓縮最小化的長度被用為此次效能評估中,每個
頁面的負載資料量(圖 11-3)。
描繪(Rendering
在這些頁面的底部加上一小段指令稿(scripthttp://wh.yslow.org/css3-logo-rendering),
1 秒鐘的間隔重新載入頁面 100 次,使用
sessionStorage
https://developer.mozilla.org/
en/DOM/Storage#sessionStorage)進行計數,並用 Chrome Developer Tools: Timeline Panel
http://code.google.com/chrome/devtools/docs/timeline.html)記錄頁面的活動,我就能夠
匯出記錄下來的資料(http://wh.yslow.org/css3-logo-logs)。然後透過一段 NodeJS 指令稿
http://wh.yslow.org/
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