Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a website with rich content (high resolution images).

I wish to load that view block contents (3 view blocks), but not the image, during the page load. Image should load in AJAX after the page load, without any external DOM element trigger. How can I achieve that?


The whole point is increasing the performance without giving up on the functionality.

share|improve this question
Sounds like something you will need to write custom code for. The drupal.org/project/jquery_ajax_load module might also be worth a look. Also, what does "40nos" mean in your question? – rooby Mar 3 '14 at 6:33
up vote 3 down vote accepted

Check out Image Lazy loader module

This is a small helper module which will automatically lazyload all images for sites with multiple images, which will make the site load faster.

All images will only load when it's visible to the browser window.

share|improve this answer
will this help in front page load performance – Bala Mar 3 '14 at 8:01
@Bala yes and no, depends. If all images are visible from the beginning, it will only slow down loading, as it makes each single image load slower due to AJAX overhead. On the other hand if some images are not on the first screen, they will be skipped at first, so if their size will justify the overhead on the images that are, then you'll get apparent loading faster. If server and user agent supports HTTP pipelining, then by not using this module you can save a lot of time on connection negotiation. If files are small, connection negotiation can be more significant than data size. And so on... – Mołot Mar 3 '14 at 8:38
@Mołot thanks sadly I need it for D6, any idea ? – Bala Mar 3 '14 at 8:51
@Bala Nope, except the one: start preparing to upgrade, as D6 support is going to end, and upgrading your site may require similar workload as backporting module, but will give you a lot more. – Mołot Mar 3 '14 at 8:56
@Bala, drupal.org/project/lazy_image_loader appears to have a D6 version available. If that doesn't work for you, let me know, I plugged luis-almeida.github.io/unveil into a D6 theme here with a thattheme_image() to take care of its use that works pretty well. But yes, alas, poor Yorick! D6 is going away :( – Jimajamma Mar 14 '14 at 12:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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