Details about jQuerylazyload lazyload

Source: Internet
Author: User
LazyLoad is a jQuery plug-in written in JavaScript. it delays loading images on long pages. this article introduces it as an example, which has a good reference value. Let's take a look at it below. Lazy Load is a jQuery plug-in written in JavaScript. it delays loading images on long pages. images outside the visible area of the browser are not loaded until the user scrolls the page to their location. this is the opposite of the image pre-loading method.

Delayed loading of images on pages containing many large images can speed up page loading. The browser will be ready after the visible images are loaded. In some cases, it can help reduce the server load.

Demo page:

Basic options

Fade-in effect

Downgrade of unsupported JavaScript browsers

Horizontal scrolling

Horizontal scrolling in Container

Vertical scroll in Container

N images exist on the page

After a delay of five seconds, the image is loaded.

Use AJAX to load images

How to Use

Lazy Load depends on jQuery. Add the following code to the end of HTML, that isBefore:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.