Open GoogleCodeExporter opened 9 years ago
Unfortunately fallback_rewrite_css_urls is only active when we failed to parse
the entire CSS file. When we added that feature, this was the only/most common
failure mode.
In your case we are recovering the parse (and just failing to parse a section
of the CSS). This is what usually happens currently. However, we have not
updated fallback_rewrite_css_urls to deal with this situation.
Original comment by sligocki@google.com
on 7 Oct 2013 at 5:39
So would a temporary work around be to put css3 extensions into a separate .css
file?
Original comment by dalo...@gmail.com
on 8 Oct 2013 at 8:51
Here are some things you could do to work around this (None seem particularly
great, though, sorry :/):
1) ModPagespeedDisallow
http://www.pitchup.com/static/pitchup/images2/sprites.png
Pro: All versions of that sprite are served with the same URL.
Con: It's the non-rewritten version.
2) Move all CSS3 to a separate file and ModPagespeedDisallow that CSS file.
Pro: All versions of sprite served from same URL (unless you have other refs to
sprite).
Con: It's still the non-rewritten version.
3) Move all CSS3 to a separate file and add something that will make it
unparseable. For example append "{" (a single unclosed bracket) to the end of
the CSS3 file. This will cause the parser to fail for the entire file and
fallback_rewrite_css will act.
Pro: All versions sprite served from same URL + that is the optimized URL.
Con: Kind of an ugly hack, may break things, depends on undocumented behavior
of CSS parser.
Original comment by sligocki@google.com
on 8 Oct 2013 at 9:59
An update on what workaround we went for, from our UX person:
Hmm, none of them are great solutions.
I must admit I'm not keen on 3 (or any of them!), just have a feeling 3) will
give us problems with browsers that are strict with parsing css (IE and Safari
etc). It's a hack.
I think the best option (until pagespeed can properly parse css3) is simply
remove the combined background attributes (image and gradient) - afaik it's
only the map button and arrow button on the homepage - they can be dropped for
a standard background image for now, with no real loss of visual impact.
Original comment by dalo...@gmail.com
on 17 Oct 2013 at 4:09
Yes, that would be a much better workaround if you don't need those features.
Original comment by sligocki@google.com
on 17 Oct 2013 at 5:30
Original issue reported on code.google.com by
sligocki@google.com
on 7 Oct 2013 at 5:38