new

PageSpeed

Integrates PageSpeed Insights optimization into MODX Revolution
The author
wfoojjaec
Packages
1
Downloads
10
Usually answers within 2 hours
Автор дополнения
Packages
1
Downloads
10
Usually answers within 2 hours
Version 1.0.1-pl
Release date 10.23.2019
Downloads 10
Views 56
Warning! This component requires PHP version 7.0 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.7 !
This extra is designed for easier integration of PageSpeed Insights optimization for MODX Revolution. It can:
  • Operate in automatic mode, if default configuration properties are enough.
  • Handle subresources via cdnjs.com API and download Google Fonts.
  • Merge and minify styles, scripts and JSON. Minify HTML content.
  • Download and cache assets. Add preconnect tags.
  • Compute SRI hashes for files and add defer or async attributes to script tag.
  • Convert gif, jpg and png images to webp format if browser supports it.
  • Manage and efficiently cache multiple configurations at once.
  • Output MODX timing tags to browser console for members of Administrator user group.
Documentation and examples can be seen here.

1.0.1-pl

  • Changed: loadClass on OnMODXInit
  • Changed: LOG_LEVEL_ERROR to LOG_LEVEL_WARN on empty $link, $script
  • Changed: tplLinkStylesheet; Eliminate render-blocking resources
  • Changed: tplConsole
  • Added: subresource version
  • Added: support for regClientCSS, regClientStartupScript, regClientScript, regClientStartupHTMLBlock, regClientHTMLBlock
  • Fixed: configuration override
  • Fixed: cache lifetime