Use BOOTSTRAP.CSS in IE under page load too slow problem

Source: Internet
Author: User

Problem Description: The Web introduced BOOTSTRAP.CSS in the header has access to the Google Server request @import URL ("//fonts.googleapis.com/css?family=open+sans:400italic, 700italic,400,700 ");

Domestic visit is not stable, page response is slow

Workaround: Save the request result, place it locally, and re-declare the request

1. Request http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700; Get CSS style as follows

Re-request the four files on the way URL request and place them locally

URL modified to a location in the file

@font-face {font-family: ' Open Sans '; font-style:normal; font-weight:400; src:local (' Open Sans '), local (' Opensans '), u RL (.. /fonts/cjzkeoubrn4kerxqtauh3t8e0i7kzn-epnyo3hzu7kw.woff) format (' Woff ');} @font-face {font-family: ' Open Sans '; font-style:normal; font-weight:700; src:local (' Open Sans Bold '), local (' Opensans -bold '), url (.. /fonts/k3k702zokiljc3wvjuplzhhcuogz7vygh680lgh-uxm.woff) format (' Woff ');} @font-face {font-family: ' Open Sans '; font-style:italic; font-weight:400; src:local (' Open Sans Italic '), local (' Opensa Ns-italic '), url (.. /fonts/xjajxh38i15wypjxxugmbobn6udyhwbl620a-irfubk.woff) format (' Woff ');} @font-face {font-family: ' Open Sans '; font-style:italic; font-weight:700; src:local (' Open Sans Bold Italic '), local (' O Pensans-bolditalic '), url (.. /fonts/prmixeptr36kac0geaetxjqr_3kx9_hjxbbyu8s6in0.woff) format (' Woff ');}

Content according to the use of the Bootstarp version of the different content, but the solution is similar, will be from the Google Server request the font of the link in the local server, can greatly alleviate the page load speed.

Use BOOTSTRAP.CSS in IE under page load too slow problem

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.