Images and related processing in the online world

Source: Internet
Author: User
Content summary

In this lecture, I explained the formats of images in the online world and their characteristics.

  1. JPG or JPEG
  2. GIF
  3. PNG

At the same time, we also explained three common strategies for improving the speed of displaying images on webpages through examples.

  1. According to the 80/20 rule, a small image is displayed first. A large image is displayed only when necessary.
  2. Load large images using asynchronous loading
  3. Uses the delayed loading policy to implement more intelligent loading methods.

 

Handout address

Https://skydrive.live.com/redir.aspx? Cid = bb01f26f28894a40 & resid = BB01F26F28894A40! 127 & parid = BB01F26F28894A40! 111

 

Video address

Http://www.tudou.com/programs/view/HWLDk95bBf8/

 

Sample Code (asynchronously loading images)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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.