function genesis_image_loading( $attr ) { if ( ! current_theme_supports( 'genesis-lazy-load-images' ) || function_exists( 'wp_lazy_loading_enabled' ) ) { return $attr; } $attr['loading'] = 'lazy'; return $attr; } Published: 25th November 2019 | Last updated: 21st August 2020