# Lazy Loading Config

The code from the examples below you can use in wp-content/themes/rhye-child/functions.php file of Rhye child theme.

// Always use the original size images. Don't use WordPress generated thumbnails
add_filter( 'arts/lazy/enable_optimized_sizes', '__return_false' );

// Customize lazy placeholder that appears before an image starts to load
// Base64 encoded image or local image URL https://example.com/my-placeholder.gif are acceptable
add_filter( 'arts/lazy/placeholder', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAHCGzyUAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAADa6r/EAAAAC0lEQVQI12NolQQAASYAn89qhTcAAAAASUVORK5CYII=' );