Mod_pagespeed strips part of our code
We recently installed the mod_pagespeed apache module through EA4 and it is removing part of our optimization code. In particular if it detects the "preload" and "onLoad" directives then it removes the entire line. That means we have for our css line completely removed which causes site issues.
Is there anyway to stop mod_pagespeed from removing or stripping code away from our html page?
-
Thanks for the reply. Do you or anyone else know which specific filter on that list would cause the stripping of preload and onLoad directives in the css line part of the code? I want to find the correct one and disable that filter from mod_pagespeed. 0 -
Using ModPagespeedCssPreserveURLs On seems to work. 0
Please sign in to leave a comment.
Comments
4 comments