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?

  • 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 Feb 4 '14 at 19:14
  • @Otto I am using other plugins, but no caching ones. – crmpicco Feb 6 '14 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 Feb 6 '14 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 Feb 7 '14 at 14:20
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, privacy policy and cookie policy

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