BG images bug in lazy-load-xt.php
-
Hello,
thanks for the plugin. It saved me a lot of time.
But i found a little bug in lazy-load-xt.php:
Line 168:
wp_enqueue_script( 'lazy-load-xt-bg', $this->dir.'js/'.$jqll.'.srcset'.$min.'.js', array( 'jquery','lazy-load-xt-script' ), $this->lazyloadxt_ver );
Line 172:
wp_enqueue_script( 'lazy-load-xt-bg', $this->dir.'js/'.$jqll.'.script'.$min.'.js', array( 'jquery','lazy-load-xt-script' ), $this->lazyloadxt_ver );
Line 181:
wp_enqueue_script( 'lazy-load-xt-bg', $script_url_pre.'.bg'.$min.'.js', array( 'jquery','lazy-load-xt-script' ), $this->lazyloadxt_ver, $footer );
You are using the same index ‘lazy-load-xt-bg’ for each of these scripts which in my case resulted in not loading the jquery.lazyloadxt.bg.js script.
Hopefully this will help you. ??
Cheers.
- The topic ‘BG images bug in lazy-load-xt.php’ is closed to new replies.