Control the use of browser speed mode by default, browser speed mode

Source: Internet
Author: User
Tags control label

Control the use of browser speed mode by default, browser speed mode
Browser kernel control Meta tag description


Background


As we all know, mainstream browsers in China are dual-core browsers: Based on the Webkit kernel, they are used for high-speed browsing of common websites. The IE-based kernel is used for compatibility with online banking and old websites. Taking several browsers of as an example, we first use the Webkit kernel to render mainstream websites. Only a small number of websites are rendered through the IE kernel to ensure page compatibility. For a long time in the past, our main control method was a website library of several hundred kb and a website library collected through long-term manual operation.
Although we strive to improve the accuracy of automatic core-cutting of browsers through user feedback and intelligent judgment of code tags. However, in many cases, we still cannot reach hundreds of entries. Therefore, we have added a new control method: the kernel controls the Meta tag. As long as you add a Meta tag to your website and tell the browser which kernel should be used for rendering the URL, the browser will switch the corresponding kernel immediately after reading the tag. And apply this behavior to all the URLs under this second-level domain name.
Currently, this function has been implemented in all secure browsers. We also recommend that other browser vendors support this implementation. Turn this control label into an industry standard.
Sample Code

Add a line of code to the head label:


html>  

The ontent value is webkit, ie-comp, or ie-stand, which is case sensitive. It indicates that the webkit kernel, IE compatible kernel, and IE standard kernel are used. 
If the page requires a high-speed core by default, add the tag: <meta name = "renderer" content = "webkit"> 
If the page requires ie compatibility with the kernel by default, add the tag: <meta name = "renderer" content = "ie-comp"> 
If the page uses the ie standard kernel by default, add the tag: <meta name = "renderer" content = "ie-stand">


See

Browser kernel control Meta label description:



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.