Lazy loading not always working
-
Hi,
I have been debugging you plugin yesterday as despite LazyLoading set in options it didn’t work. The problem was here:
public function can_replace_url( $url ) { if ( ! is_string( $url ) ) { return false; // @codeCoverageIgnore } $url = parse_url( $url ); return isset( $this->possible_sources[ ltrim( $url['host'], 'www.' ) ] ); }
and more precisely,
$this->possible_sources
for some reason contain the entries of my site img urls with ‘www’ sub-domain.Please have a look at it.
Cheers,
Kris.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Lazy loading not always working’ is closed to new replies.