I am creating a portal using large number of images. For smoothness I add lazy loading plugin to this portal
This is the plugin http://www.appelsiini.net/projects/lazyload
I used this code for initializing the plugin:
$(function () {
$("img.lazy").lazyload({
effect: "fadeIn"
});
});
Image url is like this:
<a href="#">
<img src="/public/images/dflt_03.jpg" data-original="<?php echo $this->magImg;?><?php echo $top['img_path'];?>" width="180" height="230" alt="cover" class="lazy">
</a>
This worked perfectly. But my problem is that after loading the page there is no image for displaying. after mouse scroll takes place this will show images. I want to show some images before it will be scrolled.