Gravatar is slowing my website and I want to host mystery man on my main server. So this is my normal gravatar mystery man
<img class="avatar avatar-68 avatar-default" width="68" height="68" alt="avatar" style="width: 68px; height: 68px;" src="http://1.gravatar.com/avatar/b759acf051d7e8b32049b6527ac13485?s=68&d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D68&r=G"></img>
And I want to host it on my server, so I tried to use this php code
function my_own_gravatar( $avatar_defaults ) {
$myavatar = get_bloginfo('template_directory') . '/design/img/m.png';
$avatar_defaults[$myavatar] = 'DEFAULT SPEED';
return $avatar_defaults;
}
add_filter( 'avatar_defaults', 'my_own_gravatar' );
But then there is still gravatar and redirect that is slowing loading time
<img src="http://0.gravatar.com/avatar/470ba3844a4ca24a9a125e198a424027?s=68&d=http%3A%2F%2Fwww.my-website.com%2Fwp-content%2Fthemes%2Fdirectory%2Fdesign%2Fimg%2Fm.png&r=G" class="avatar avatar-68 avatar-default" height="68" width="68" style="width: 68px; height: 68px;" alt="avatar">
F***ing gravatar - Can you please help me ?