WebSavvyGuy

Member
May 10, 2018
11
1
3
China
cPanel Access Level
Root Administrator
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?
 

WebSavvyGuy

Member
May 10, 2018
11
1
3
China
cPanel Access Level
Root Administrator
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.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,628
363
cPanel Access Level
Root Administrator
It seems this is a known issue as there is a discussion on this here:


Do those details help with your situation?