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.
[null,null,["Last updated 2024-09-03 UTC."],[[["PageSpeed Optimization Libraries (PSOL) are C++ classes that automatically optimize web pages and resources, independent of the server."],["PSOL is open-source and welcomes community contributions."],["To use PSOL, you need to build mod_pagespeed, then build the PSOL library using provided instructions."],["A sample application and API documentation are available to guide integration and usage."]]],["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"]]