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
JavaScript 的下載會阻斷(block)其他頁面元件的載入。這也是為什麼以非阻斷式
的非同步(nonblocking asynchronous)方法來載入指令稿檔案(script files)是很重
要的(或者可說是非常
關鍵
的)。如果這對你來說有點陌生,那麼你可以從 Yahoo
User InterfaceYUI)程式庫的部落格上,這一篇貼文開始讀起:http://www.yuiblog.
com/blog/2008/07/22/non-blocking-scripts/,或是這一篇效能優化日誌:http://calendar.
perfplanet.com/2010/the-truth-about-non-blocking-javascript/
在本文中,我會從第三方的角度來檢視這個主題:假設你是第三方,提供了一個程式碼小
片段(snippet)給其他開發者,讓他們引入他們的頁面。
不管這個程式碼小片段是廣告、
外掛、組件(widget)、訪問者計數器(visits counter)、流量分析器(analytics),或其
他東西。
讓我們詳細的看一下,Facebook JavaScript SDK 如何解決這個問題。
Facebook 外掛的 JS SDK
Facebook JavaScript SDKhttps://developers.facebook.com/docs/reference/javascript/)是一
個多用途的程式碼集合,讓你整合 Fa
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