jQuery.lazy_content


Project maintained by tulios

Example Page - Loading any content



          // Lazy loading blocks of imagens

          $(".block").lazyContent({
            threshold: 0,
            load: function(element) {
              element.find(".loading").hide();
              element.find("img").each(function() {
                var $img = $(this);
                $img.attr("src", $img.data("src"));
                $img.load(function() { $img.addClass("loaded") });
              });

              element.find(".content").show();
            }
          });
        
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...