This page describes some additional mod_pagespeed configuration parameters related to our RESS image lightening article.
Additional mod_pagespeed Configuration Notes
mod_pagespeed has a couple of other useful tricks up its sleeve. First of all, for devices that support JavaScipt there is a useful lazy-loading option for images that prevents the browser from fetching images until they’re actually needed for display on screen. This can significantly speed up the time taken to get the initial content. You can enable this with the following configuration parameter:
You can fine-tune the image resizing behaviour with the ImageMaxRewritesAtOnce parameter. Refer to the documentation for more details.
Finally, mod_pagespeed can optionally apply further compression for the special case of small screens. This is configured as follows:
Note that mod_pagespeed can be configured to fetch images for resizing directly from disk rather than via the web server as follows:
ModPagespeedLoadFromFile "http://www.example.com/static/" \