20 Web acceleration principles for Reference

Source: Internet
Author: User
 

Flush the buffer early [server] -- give response to flush as soon as possible

Use get for Ajax requests [server] -- use the get Method for Ajax Communication

Post-Load components [content] -- load component content

Preload components [content] -- pre-load component content

Reduce the number of DOM elements [content] -- Minimize the number of DOM elements in XML

Split components into SS domains [content] -- split the content into different domain names

Minimize the number of iframes [content] -- Reduce the number of IFRAME

No 404 s [content] -- do not leave the wrong URL address

Reduce cookie size [cookie] -- reduce the cookie size

Use cookie-free domains for components [cookie] -- put the content on some domain names without Cookie

Minimize Dom access [JavaScript] -- minimize Dom access

Develop smart Event Handlers [JavaScript] -- develop flexible Message Processing (??)

Choose <link> over @ import [CSS] -- use link instead of @ import

Avoid filters [CSS] -- avoid using filters (??)

Optimize images [images] -- optimize images

Optimize CSS Sprites [images] -- Optimize CSS

Don't scale images in HTML [images] -- do not control image scaling in HTML

Make favicon. ICO small and cacheable [images] -- Optimize the logo image in the address bar

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.