Simple Lazy Load Background Images Using jQuery Plugin

Simple JQuery lazy background image loading plugin is used to delay loading images until the container has been passed by more than 33% in the viewport.

Lazy Loading Images, Backgrounds, Videos & Iframes | lazyload.js

How to make use of it:

1. Load the jQuery library and jQuery bglazyload.js script to your web page.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src='js/jquery.bglazyload.js'></script>

2. Add a background image to a container using the data-bgimg attribute.

<div class="lazy" data-bgimg="demo.jpg">
...
</div>

3. Call the bglazyload() function on the container.

$('.lazy').bglazyload();

Background Image Lazy Loading Plugin/Github, lazy loading jquery ajax example, jquery lazy load content on scroll example, lazy load jquery plugin free download


See Demo And Download

Official Website(vineetgarg90): Click Here

This superior jQuery/javascript plugin is developed by vineetgarg90. For extra advanced usage, please go to the official website.

Related Posts

Bootstrap-4-Sidebar-Menu-Responsive-Template

Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…

bootstrap-5-treeview

Bootstrap 5 Treeview Dynamically Collapsible | bs5treeview

Bootstrap 5 Tree View is a very simple plug-in for creating a basic and elegant Treeview using BS5. For use with Bootstrap 5, the attributes have been…

swiper-touch-slider

Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…

jquery-steps-plugin

[Steps] A Simple, Lightweight jQuery Step Wizard Plugin

jQuery steps wizard is a simple and lightweight plugin. The step is a jQuery plugin that turns any grouped elements into a step-by-step wizard with navigation buttons…

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

Mobile-App-Sliding-Menu-mmenu

Create a Beautiful Mobile App-Like Sliding Menu | mmenu.js

Mmenu is the best JavaScript plugin for both on and off-canvas(hamburger menu) menus with sliding submenus for your website and web app. It is very customizable with…

Leave a Reply

Your email address will not be published. Required fields are marked *