JavaScript image delayed loading library Echo. js_javascript skills

Source: Internet
Author: User
Echo is an independent JavaScript tool for loading images lazily. It is fast, small (less than 1 k), and uses HTML5 data-attributes, this article introduces the JavaScript image delay loading library Echo. js. If you are interested, learn it together. Echo is an independent JavaScript tool for loading images lazily. It is fast, small (less than 1 k), and uses HTML5 data-attributes. Echo supports IE8 +.

Plug-in description: like Lazy Load, Echo. js is also used for image delayed loading of JavaScript. The difference is that Lazy Load is a jQuery-based plug-in, while Echo. js is independent of jQuery or other JavaScript libraries and can be used independently. In addition, Echo. js is very small and less than 1 kb after compression.

Compatibility

Echo. js uses the date attribute of HTML5 and needs to obtain the value of this attribute. Therefore, it is not compatible with IE6 and IE7. Although Lazy Load also uses the date attribute of HTML5, the methods for obtaining values are different.

Usage

  1. Import files

The Code is as follows:


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.