PHPackages                             georgringer/page\_speed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. georgringer/page\_speed

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

georgringer/page\_speed
=======================

Performance &amp; Usability are important to any site. Check every page for it and know how the site can be improved.

1.0.0(10y ago)168.1k4[1 issues](https://github.com/georgringer/page_speed/issues)GPL-2.0+HTML

Since Jun 30Pushed 6y ago4 watchersCompare

[ Source](https://github.com/georgringer/page_speed)[ Packagist](https://packagist.org/packages/georgringer/page_speed)[ Docs](http://montagmorgen.at)[ RSS](/packages/georgringer-page-speed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

TYPO3 CMS Extension "page\_speed"
=================================

[](#typo3-cms-extension-page_speed)

This extensions provides an entry in the info module to check the **usability** &amp; **performance**of the selected page by using the API of [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights/).

Every page is automatically checked for the resolution **desktop** &amp; **mobile**.

Screenshot
----------

[](#screenshot)

[![Screenshot of the backend](Resources/Public/Documentation/screenshot.png)](Resources/Public/Documentation/screenshot.png)

Requirements
------------

[](#requirements)

- TYPO3 CMS 9.5+
- Google Account

Installation &amp; Configuration
--------------------------------

[](#installation--configuration)

The extension just needs to be installed as any other extension. To make it work, you need a Google account and activate the PageSpeed service. After successfully activating the PageSpeed service you need to set the key in the configuration in EM and deactivate the demo mode.

### Enable PageSpeed Service

[](#enable-pagespeed-service)

1. Open [console.developers.google.com](https://console.developers.google.com/) and create a new project.
2. Open the project and switch to *APIs and auth* &gt; *APIs*, select *PageSpeed Insights API* and **Activate the API**.
3. Switch to *Credentials* and click the button **Create new key** for *public API access*.
4. Create either a *Server key* or a *Browser key\**.
5. Test the access by using cUrl on the server where you want to use the extension by calling the command `curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&url=http://www.bbc.co.uk/&key=AIzaSyA2rQEy7UyQz-9D1-7bnmw1jzSo0FmobYM'`. (If you get a `Bad request`, just wait a few minutes to get the key deployed on all Google servers)

### Preview Domain

[](#preview-domain)

If you need to use a different domain in the frontend or no sys domain record is available, you can use the following configuration inside your **PageTsConfig**:

```
TCEMAIN.previewDomain = localhost/sites/t3/master
```

### Avoid error "require\_once(Net/URL2.php)"

[](#avoid-error-require_onceneturl2php)

If you see an exception about the file `Net/URL2.php` not found, please open the file `typo3/contrib/vendor/pear/http_request2/HTTP/Request2.php` and remove the *require\_once* statement in line 24. This bug will be gone soon.

Technical background
--------------------

[](#technical-background)

A little bit technical information for the ones who are interested in:

The API is described in detail at [developers.google.com/speed/docs/insights/v2/reference/pagespeedapi/runpagespeed](https://developers.google.com/speed/docs/insights/v2/reference/pagespeedapi/runpagespeed)and it is very simple to test by just using curl:

```
# Desktop
curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&screenshot=true&url=http://www.typo3.org&key='
# Mobile
curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=mobile&screenshot=true&url=http://www.typo3.org&key=
