Difference between direct css placement on pages and external calls

Source: Internet
Author: User

1. Reduce http requests
Adding additional http requests to external links is time-consuming.
2. Avoid bare pages
If the server storing css fails, the entire homepage will be suspended. It is safer to put it on the page. When a user accesses a page, it does not cause a bare page because css cannot be loaded.
3. Modification
You may say this is not easy to modify and manage.
In fact, they are all dynamically loaded by applications, and then cached static homepage.
I know so much about it now.

4. It is easy to modify the external layout, but if css cannot be loaded, it may lead to bare pages.


Generally, high-traffic websites place css directly on the page. This is an optimization solution to cope with high-traffic, such as NetEase homepage and Tencent homepage.

 

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.