Title: [Plugin: javascript-image-loader] Load and ignore sidebar
Last modified: August 19, 2016

---

# [Plugin: javascript-image-loader] Load and ignore sidebar

 *  [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-javascript-image-loader-load-and-ignore-sidebar/)
 * 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

Viewing 1 replies (of 1 total)

 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-javascript-image-loader-load-and-ignore-sidebar/#post-1639064)
 * any ideas folks?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: javascript-image-loader] Load and ignore sidebar’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/javascript-image-loader.svg)
 * [javascript-image-loader](https://wordpress.org/plugins/javascript-image-loader/)
 * [Support Threads](https://wordpress.org/support/plugin/javascript-image-loader/)
 * [Active Topics](https://wordpress.org/support/plugin/javascript-image-loader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/javascript-image-loader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/javascript-image-loader/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-javascript-image-loader-load-and-ignore-sidebar/#post-1639064)
 * Status: not resolved