PageSpeed Optimization Libraries
Stay organized with collections
Save and categorize content based on your preferences.
PageSpeed Optimization Libraries are a set of C++ classes that automatically optimize web pages and resources they use, using a server-independent framework. The libraries are open-source, and we welcome any community contributions!
Three steps to working with the APIs
Install
The first step to use PSOL is to build mod_pagespeed from source.
Note that this will build the Apache module, but we will not be
using Apache or the module for PSOL or our sample application.
Curent limitations on the build system employed by PSOL make it
necessary to first compile mod_pagespeed.
Instructions can be found on the mod_pagespeed wiki under
HowToBuild.
Once you have completed that step enter the commands:
cd INSTALL_DIR/src/pagespeed/automatic
make all
This will generate the library
pagespeed_automatic.a
in the
current directory.
Use the sample application as a reference
The mod_pagespeed source has a directory containing a simple integration with the PageSpeed Optimization
Libraries. In it, please look at the Makefile, main class, and main program.
Read the APIs
The class library documentation can be found in the API docs.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-03 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."]]