Use the Meta tag code to make the dual-core browser default speed mode not compatible mode _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Tags control label
This article mainly introduces how to use the Meta tag code to enable dual-core browsers to open websites in the fast mode by default. If you need it, you can refer to the next website and use html5 and css3 in a large number, if you want to open the page with the webkit kernel, but the test shows that the recommended mode is to open the ie kernel in. I do not know why. In fact, designed a method for website developers to choose from. You only need to add a piece of Meta tag code to solve the problem.

The following information is taken from the official website of:


Browsing mode

The speed mode, compatibility mode, and IE9 high-speed mode are the three modes used when a browser displays a webpage:

Express Mode

Compatible mode

IE9/IE10 mode (available only after IE9 or IE10 is installed)

The speed browser automatically selects the appropriate browsing mode for each website. Therefore, you do not need to know the differences between several kernels.

What are the characteristics of several modes?

In high speed mode, the website is opened quickly, but some websites may have compatibility problems in high speed mode, and the display is abnormal.
In compatibility mode, the website opening speed is slightly lower than the speed mode, but the webpage compatibility is less problematic.
In IE9/IE10 mode, the website will use IE9/IE10 rendering mode, supporting hardware acceleration and IE9/IE10 new script rendering engine.

When you switch the browsing mode, the speed browser will automatically synchronize data between the dual-core, so that you can seamlessly switch between the dual-core.

User Experience plan

When you join the user experience program, we will send the switched URL to the website, so that we can improve the compatibility list library and Product improvement.

The uploaded data does not contain information that has your individual characteristics and will not be disclosed to a third-party individual or organization.

If you do not want to switch the upload URL, you only need to deselect the "advanced options" check box.
"Automatically send usage statistics and crash reports to the speedy browser website to help us improve the speedy Browser.

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:

    
 


The value of content is webkit, ie-comp, or ie-stand, which is case sensitive. It indicates that the webkit kernel is used, the IE is compatible with the kernel, and the IE standard kernel is used.

If the page needs to use a speed core by default, add the tag:

 

If you need to use ie compatible kernel by default on the page, add the following labels:

 


If the page needs to use the ie standard kernel by default, add the following labels:

 



A problem is found here. The Official Message ends with ">", which does not take effect in actual testing. In this case, you only need to change the end to "/>" (note/there is a space in front ), testing is feasible.

Technical details of each rendering Kernel

Kernel Webkit IE compatibility IE Standard
Document Mode Chrome 21 IE6/7 IE9/IE10/IE11 (depending on your IE)
HTML5 support YES NO YES
ActiveX Control Support NO YES YES


UA examples for each Kernel

In IE9/IE10 mode, the new kernel used by IE9/IE10 is added with hardware acceleration and a new script rendering engine, and more standard HMTL5 and CSS3 support.

The above Code uses Meta tags to make the dual-core browser's default speed mode not compatible with the _ HTML/Xhtml _ webpage content. For more information, see the PHP Chinese website (www.php1.cn )!

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.