swift_performance_base64_placeholder

Filter for the transparent lazyload placeholder. You can replace it with any base64 encoded image (eg: spinner)

Parameters

$code

string which contains the base64 encoded image

Return

string


Example

// Change transparent palceholder to 1x1 transparent png
add_filter('swift_performance_base64_placeholder', function($code){
 return " iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP89etvPQAJWQNym08uSwAAAABJRU5ErkJggg== "
});