Вопрос

I'm using mod_pagespeed and I'm searching for a way to rewrite all images into data:image format. Currently only small images are being included. I can't find anything in the documentation.

Это было полезно?

Решение

You can use the ModPageSpeedImageInlineMaxBytes option to configure the size threshold used by the inline_images filter. See the image optimization documentation for more details.

However, you should consider carefully if you want to actually inline all images? While you'll save making another request for the inlined images, you'll also miss out on benefits such as cache extension, and pay a penalty if you reference an image multiple times on a page.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top