Enable lazyload plug-in to Reduce image loading reprinting to http://lusongsong.com/blog/post/299.html

Source: Internet
Author: User

Juziyue's blog management software told me in the message book that each time a new page is opened, more than 100 gravatar portraits will be loaded. We recommend that you use the Javascript plug-in of lazyload to Reduce image loading, increase page loading speed and save traffic. Although this profile picture is from a third-party server and does not consume Blog traffic, it is good to Save loading time for some visitors.

Previously, I also mentioned in my blog that I used the lazyload plug-in, but I didn't care about it after I switched to a better server. Chrysanthemum enthusiastically made the loaded image:

Seeing this figure, I realized that lazyload is useless only when the network speed is fast. the user's browser needs to load so many gravatar pictures to open the page. Are I considering removing gravatar pictures?

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. (Official demo address)

Installation Method:

Download the two JS files, one image, and put it in your blog space. You can use JavaScript to call webpages with multiple images.

<SCRIPT type = "text/JavaScript" src = "http://lusongsong.com/themes/LuSongSong/script/jquery.js"> </SCRIPT>

<SCRIPT type = "text/JavaScript" src = "http://lusongsong.com/themes/LuSongSong/script/jquery.lazyload.js"> </SCRIPT>

Http://lusongsong.com/themes/LuSongSong/script/grey.gif

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.