Skip to content

Commit

Permalink
Merge pull request #381 from wp-media/fix/75-fb-android
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
GeekPress authored Mar 20, 2017
2 parents 7e1ac64 + a243ccb commit 6bc035c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added inc/front/img/blank.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions inc/front/lazyload.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function rocket_lazyload_iframes( $html ) {
}

/** This filter is documented in inc/front/lazyload.php */
$placeholder = apply_filters( 'rocket_lazyload_placeholder', 'data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=' );
$placeholder = apply_filters( 'rocket_iframe_lazyload_placeholder', get_rocket_cdn_url( WP_ROCKET_FRONT_URL . 'img/blank.gif' ) );

$iframe = preg_replace( '/<iframe(.*?)src=/is', '<iframe$1src="' . $placeholder . '" data-lazy-src=', $iframe );

Expand Down Expand Up @@ -301,4 +301,4 @@ function __rocket_lazyload_on_srcset( $html ) {
}

return $html;
}
}

0 comments on commit 6bc035c

Please sign in to comment.