diff options
Diffstat (limited to 'plugins/jetpack/modules/lazy-images/js/lazy-images.js')
-rw-r--r-- | plugins/jetpack/modules/lazy-images/js/lazy-images.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/lazy-images/js/lazy-images.js b/plugins/jetpack/modules/lazy-images/js/lazy-images.js index 31286bd3..1ddbc2c6 100644 --- a/plugins/jetpack/modules/lazy-images/js/lazy-images.js +++ b/plugins/jetpack/modules/lazy-images/js/lazy-images.js @@ -107,7 +107,7 @@ var jetpackLazyImagesModule = function( $ ) { srcset = theImage.attr( 'data-lazy-srcset' ); sizes = theImage.attr( 'data-lazy-sizes' ); - theClone = theImage.clone(); + theClone = theImage.clone(true); // Remove lazy attributes from the clone. theClone.removeAttr( 'data-lazy-srcset' ), @@ -139,7 +139,6 @@ var jetpackLazyImagesModule = function( $ ) { * https://github.com/w3c/IntersectionObserver/tree/master/polyfill */ -/* jshint ignore:start */ /** * Copyright 2016 Google Inc. All Rights Reserved. * @@ -864,7 +863,6 @@ var jetpackLazyImagesModule = function( $ ) { window.IntersectionObserverEntry = IntersectionObserverEntry; }(window, document)); -/* jshint ignore:end */ // Let's kick things off now jetpackLazyImagesModule( jQuery ); |