PageSpeed 最佳化程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
PageSpeed 最佳化程式庫是一組 C++ 類別,會透過與伺服器無關的架構,自動最佳化網頁和資源所使用的資源。這些程式庫採用開放原始碼,我們也歡迎任何社群貢獻!
使用 API 的三個步驟
安裝
如要使用 PSOL,第一步是從來源建構 mod_pagespeed。
請注意,這樣會建構 Apache 模組,但我們不會
使用 Apache 或 PSOL 的模組,或我們的範例應用程式。
PSOL 採用的建構系統受到現有的限制,
來完成第一個編譯 mod_pagespeed 程序的需要。
相關說明請參閱 mod_pagespeed 維基網頁
HowToBuild。
完成該步驟後,請輸入下列指令:
cd INSTALL_DIR/src/pagespeed/automatic
make all
敬上
系統隨即會在
pagespeed_automatic.a
複製而來的檔案
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["PageSpeed Optimization Libraries (PSOL) optimize web pages using a server-independent framework. To use PSOL, first build mod_pagespeed from source, which generates `pagespeed_automatic.a`. Then, navigate to the `INSTALL_DIR/src/pagespeed/automatic` directory and execute `make all`. The sample application in the mod_pagespeed source directory provides examples in the Makefile, main class, and main program. Finally, the API documentation offers class library information. Community contributions to the open-source libraries are encouraged.\n"],null,[]]