No possiblitiy to change image quality leads to bad PageSpeed Insights
-
Google PageSpeed Insights ultimatly leads me here. It says my 900×620 px images from my slideshow has a size of 780kb – which is nearly the same filesize as of the original image with round about 1800×1200 px. Normaly i would expect an filesize of around 250 kb.
So i looked in your plugin-code and found that you compress every single image with a quality of 100%.
Not enough you didnt care about the jpeg_quality filter wordpress provided out of the box (
add_filter('jpeg_quality', function($arg) { return (int)75; });
), you also didnt even think about make your quality setting adjustable by an own filter and bloated the values all around multiple functions.Damn, i like your frontend and all the good stuff, but on the server side you had to do some work.
- The topic ‘No possiblitiy to change image quality leads to bad PageSpeed Insights’ is closed to new replies.