Load and ignore sidebar (2 posts)

  1. rhythmdoctor
    Posted 6 years ago #

    I found this thread which shows that you need to add

    "$(function() {
    $( "#mainbody img" ).lazyload();

    In order to have it only focus on lazy loading for #mainbody. 2 questions - 1) Where does this code go? Could you provide a step by step? 2) Is there any way aside from blocking the sidebar, to have it lazy load images across the site from top to bottom regardless of where the sidebar is? OR - to create a specific class that this plugin ignores so that I can code certain areas and know that they will be ignored?

    I have my sidebar after my posts and so all the images are blank until you scroll down the page and then back up - which is a problem for the ads in the position.

    Thanks in advance for the help

  2. rhythmdoctor
    Posted 5 years ago #

    any ideas folks?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • javascript-image-loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic