apache - Image spriting with mod_pagespeed -
i've installed google mod_pagespeed on apache 2.2 , seems working except fact image spriting not working.
i've set loglevel debug , message i'm getting is:
[mon mar 10 17:51:58 2014] [info] [mod_pagespeed 1.6.29.7-3566 @26487] attempting sprite css background.
no further messages related spriting show in logs.
i can confirm image spriting switched on:
/mod_pagespeed_statistics?config
configuration: version: 13: on filters ah add head cw collapse whitespace cc combine css jc combine javascript gp convert gif png jp convert jpeg progressive mc convert meta tags pj convert png jpeg dj defer javascript ec cache extend css ei cache extend images es cache extend scripts fc fallback rewrite css if flatten css imports hw flushes html ci inline css ii inline images il inline @import link ji inline javascript js jpeg subsampling ll lazyload images tu left trim urls pr prioritize critical css rj recompress jpeg rp recompress png rw recompress webp rc remove comments ri resize images cf rewrite css jm rewrite javascript cu rewrite style attributes url sprite images cp strip image color profiles md strip image meta data
the image spiriting filter has lot of limitations, site hitting 1 or more of these issues.
from sprite images documentation:
limitations
the sprite images filter still experimental, , has number of limitations:
- only png amd gif images supported; jpg come in future release.
- only css backgrounds supported;
<img>
tags come in future release.- a background image can't safely sprited if html element larger background image (since allow combined image's pixels show around edges). accordingly, css must have explicit width , height in same declaration background url, , width , height must smaller or equal of image.
- the css must not include background-position declarations without background-url declarations. such naked background-position declaration apply background-image, , since don't know one, isn't safe spriting.
- the sprite images filter arranges images in vertical strip, might not efficient arrangement. more advanced layouts come in future release.
Comments
Post a Comment