Title: Bug in plugin
Last modified: March 28, 2021

---

# Bug in plugin

 *  Resolved [thomastolkien](https://wordpress.org/support/users/thomastolkien/)
 * (@thomastolkien)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bug-in-plugin-17/)
 * There’s a bug in the most recent version of this plugin.
 * This code is loaded in the footer of every page on the site – whether or not 
   there’s a video on the page. This unnecessary code is added a massive extra load
   to each page.
 * <script type=”aef93484dfb200770b1ddef5-text/javascript”>function lazyLoadThumb(
   e){var t=’<noscript></noscript>’,a='<div class=”play”></div>’;return t.replace(“
   ID”,e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement(“iframe”),
   t=”ID?autoplay=1″;t+=0===this.dataset.query.length?”:’&’+this.dataset.query;e.
   setAttribute(“src”,t.replace(“ID”,this.dataset.src)),e.setAttribute(“frameborder”,”
   0″),e.setAttribute(“allowfullscreen”,”1″),e.setAttribute(“allow”, “accelerometer;
   autoplay; encrypted-media; gyroscope; picture-in-picture”),this.parentNode.replaceChild(
   e,this)}document.addEventListener(“DOMContentLoaded”,function(){var e,t,a=document.
   getElementsByClassName(“rll-youtube-player”);for(t=0;t<a.length;t++)e=document.
   createElement(“div”),e.setAttribute(“data-id”,a[t].dataset.id),e.setAttribute(“
   data-query”, a[t].dataset.query),e.setAttribute(“data-src”, a[t].dataset.src),
   e.innerHTML=lazyLoadThumb(a[t].dataset.id),e.onclick=lazyLoadYoutubeIframe,a[
   t].appendChild(e)});</script>
 * Please can you fix this and/or in the meantime provide a hotfix to strip out 
   this code? Thanks.
    -  This topic was modified 5 years, 2 months ago by [thomastolkien](https://wordpress.org/support/users/thomastolkien/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WP Media](https://wordpress.org/support/users/wp_media/)
 * (@wp_media)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bug-in-plugin-17/#post-14251055)
 * Hello [@thomastolkien](https://wordpress.org/support/users/thomastolkien/)
 * Thank you for contacting us.
 * This piece of code is added not only in the latest version but in older ones,
   and indeed it will be present even if there is no YouTube video present on the
   page.
 * The impact over the performance will be null because there will be no video /
   image to operate on.
 * By the moment, there is no way to remove this code other than to disable the 
   function.
 * Best regards.
 *  [School Reading List](https://wordpress.org/support/users/schoolreadinglist/)
 * (@schoolreadinglist)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bug-in-plugin-17/#post-14251677)
 * Thanks for confirming that your plugin adds script for including an external .
   png file from Youtube’s servers to every page on a WordPress site, even on pages/
   posts that do not feature WordPress videos.
 * We’ll find another plugin to use for lazy loading until this item is fixed.
 * Have a great day!
 *  Thread Starter [thomastolkien](https://wordpress.org/support/users/thomastolkien/)
 * (@thomastolkien)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/bug-in-plugin-17/#post-14251682)
 * Thanks for confirming that your plugin adds script for including an external .
   png file from Youtube’s servers to every page on a WordPress site, even on pages/
   posts that do not feature WordPress videos.
 * We’ll find another plugin to use for lazy loading until this item is fixed.
 * Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug in plugin’ is closed to new replies.

 * ![](https://ps.w.org/rocket-lazy-load/assets/icon-256x256.png?rev=2715509)
 * [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes](https://wordpress.org/plugins/rocket-lazy-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rocket-lazy-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rocket-lazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/rocket-lazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rocket-lazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rocket-lazy-load/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [thomastolkien](https://wordpress.org/support/users/thomastolkien/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/bug-in-plugin-17/#post-14251682)
 * Status: resolved