1

I am attempting to install the image LazyLoad plugin with use on my Wordpress 3.3.1 blog.

I have followed the basic instructions, so it is installed and activated on my development site.

The problem is I see no jQuery.sonar reference in the source (which this plugin uses).

The plugin does this when en queuing the scripts:

wp_enqueue_script( 'wpcom-lazy-load-images',  self::get_url( 'js/lazy-load.js' ), array( 'jquery', 'jquery-sonar' ), self::version, true );
wp_enqueue_script( 'jquery-sonar', self::get_url( 'js/jquery.sonar.min.js' ), array( 'jquery' ), self::version, true );

Why would these scripts not be output and available in the source?

4
  • There's nothing wrong with that code. Are you using any other plugins? Perhaps a caching plugin that does minification or some such thing?
    – Otto
    Commented Feb 4, 2014 at 19:14
  • @Otto I am using other plugins, but no caching ones.
    – crmpicco
    Commented Feb 6, 2014 at 16:25
  • Well, unfortunately, without more information, the problem cannot be solved then. Like I said, there's nothing wrong with that code. So the problem must be in some other code in your setup.
    – Otto
    Commented Feb 6, 2014 at 21:15
  • @Otto I ended up abandoning the idea of a WP plugin an used jQuery Unveil instead luis-almeida.github.io/unveil
    – crmpicco
    Commented Feb 7, 2014 at 14:20

1 Answer 1

0

It's better check if your minify plugin ( eg:- W3 total) minify or combined jQuery.sonar file. That's why you can't see it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.