[Plugin: jQuery Image Lazy Load WP] (1 post)

  1. romanczar
    Posted 5 years ago #


    seem like the lazy load plugin breaks other JQuery stuff a lot.

    I experienced this with a manual include of ScrollTo and LocalScroll JQuery plugins.

    function jquery_lazy_load_headers() {
      $plugin_path = plugins_url('/', __FILE__);
      $lazy_url = $plugin_path . 'javascripts/jquery.lazyload.mini.js';
      //$jq_url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';
      //wp_enqueue_script('jquery', $jq_url, false, '1.4.2');
      wp_enqueue_script('jquerylazyload', $lazy_url, 'jquery', '1.5.0');

    I changed the code above and now it works. I include my own JS file form my server instead of Google's and this seems to do the trick. but I don't understand why?

    When keeping the plugin as it was I always get in Firebug an error: "localscroll is not a function" for my other code. If I comment out the lines above, everything works, so my own script works. Lazy load , too. But together there is something strange...

    Any JQuery guru has an idea???

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by romanczar
  • This topic is not a support question
  • WordPress version: 3.0


No tags yet.