Chris S – Chris's speed tips post

Posted in: Newspaper
Post count: 242

Chris S

I’ve implemented your speed tips in functions.php – which is great thanks

I’m using EWWWW Image Opt now – should I remove the part of the code that controls this in your php code? Or doesn’t it matter that both are employed? I removed the code and installed plugin but want to put the speed tips code back in too 🙂

This line? add_filter( ‘jpeg_quality’, create_function( ”, ‘return 50;’ ) );

And if yes…is it dangerous or literally a delete the line…

Thanks

Pat

Post count: 9544

I guess you could try both methods …

I use that line in there as it changes the default setting from 90 to 50 (although 45 or 55 works better for some folks depending on size of thumbs) as used by WordPress generated thumbs — if using a plugin that calls on GDlibs/ImageMagick on server directly, then the setting wouldn’t impact that.

I’m not sure if EWWW or Smushit call the server libs directly, but one would presume so. I’m using the default WP setup plus mod_pagespeed for optimization (including on the fly conversion/caching to WEBP format), so not using any plugins.

Idea behind that is that thumbs don’t need very high image quality as they are just pointers to the post where the good full size image lives. WordPress presumes every image should be as beautiful as possible at every size, which is kind of dumb in the real world.

Post count: 242

Ha ok thanks Chris I’ll implement it and see what happens then

Thanks for a quick reply didn’t expect to hit you up so quickly!

Take care

Pat

Post count: 9544

I was waiting for my site backup to complete and doing my “quick zoom around the web …” including here to see if anybody blew the place up yet (kidding) 😉

I’m trying NOT to poke my head in here anymore, but keep having these little windows of time to kill …

Post count: 242

Ha ok just lucky then!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.