I have a site where some pages are using a special hero image that is defined in a style tag in that page's HTML head. I am using Pagespeed to use rewrite_images and prioritize_critical_css. However, it seems the style tags in the head are being moved to the bottom before rewrite_images is able to do it's work. The style tags at the bottom are just the normal JPG file it is referencing. The style tags in the head have the pagespeed optimized versions. Thus, the browser is using the unoptimized JPGs. This is what I have configured in the htaccess:Anyone run into something like this? Thanks, Scott
ModPagespeed on
ModPagespeedRewriteLevel CoreFilters
ModPagespeedEnableFilters collapse_whitespace,remove_comments,prioritize_critical_css
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/8e885b62-4b89-4a4a-9280-63133011c03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The optimized image is being created, but the CSS is causing it to be overridden back to the original version. Pagespeed is creating a second style tag at the bottom of the source code without the optimized version. The page heroes on our site have to be defined in a style tag in the HTML head because different sections have different images and are managed by many different offices around campus. Because of that, it would not make sense to define the page hero image in a separate stylesheet. So I am not sure there is any way around that.
Thanks again!
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/8e885b62-4b89-4a4a-9280-63133011c03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/6a1daa78-71e5-4178-a9d6-5b53450ecd2b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/8e885b62-4b89-4a4a-9280-63133011c03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/8e885b62-4b89-4a4a-9280-63133011c03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/6a1daa78-71e5-4178-a9d6-5b53450ecd2b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/2005d160-4ffe-4d1d-adc4-0fbd329a7a7f%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/662bfc27-563c-434c-b34f-19592791891f%40googlegroups.com.