Use META tag code to make dual-core browser default fast mode open site is not compatible mode

Source: Internet
Author: User
Tags code tag control label



The company made the page in Open will encounter in automatically jump to compatibility mode caused many compatibility problems, groping for a long time finally found on the Internet how to solve the method, the details are as follows:



In fact,to the Web site developers to design a method of choice, as long as the addition of a META tag code can be resolved.



The following information is excerpted from the official website:


Browse mode


Fast mode, compatibility mode and IE9 high-speed mode are the three modes that browsers use when displaying Web pages:



Express Speed Mode



Indicates compatibility mode



Represents the Ie9/ie10 mode (available only after installing IE9 or IE10)



The speed browser automatically chooses the browse mode for each website you use. So, usually you don't need to know the difference between several cores.


What are the characteristics of several models?


Speed mode, the site is open fast, but some sites in the speed mode may be a compatibility issue, the display is not normal.
In compatibility mode, Web sites are slightly slower to open than the speed mode, but less web compatibility issues.
In Ie9/ie10 mode, the site renders using IE9/IE10 rendering, supports hardware acceleration, and ie9/ie10 a new script rendering engine.



When switching between browsing modes, the browser will automatically sync the data between the two cores, allowing you to seamlessly switch between the two cores.


User Experience Program


When you join the user Experience program, we will send the switch URL to the website so that we can improve the Compatible list library and improve the product.



The uploaded data does not contain information that has your individual characteristics and is not disclosed to third party individuals or organizations.



If you do not want to upload the switch URL, you only need to remove the tick in the "Advanced options"
"Automatically sends usage statistics and crash reports to web browser websites to help us complete the speed browser."


Background introduction


As is known to all, the domestic mainstream browser is a dual-core browser: Based on the WebKit kernel for popular sites of high-speed browsing. IE-based kernels are used to be compatible with online banking and legacy websites. For example, of the browsers, we prefer to render the mainstream through the WebKit kernel site, only a small amount of web sites through the IE kernel rendering, to ensure that the page is compatible. For a long time, our main control was a hundreds of K size Web site library, a library of URLs collected through long-term manual operations.



Although we strive to improve the automatic core accuracy of the browser through user feedback, code Tag Intelligent judgment technology. But in many cases, we still can't reach disposing right. As a result, we have added a new control: the kernel controls meta tags. As long as you add a meta tag to your website, tell the browser which kernel to use to render the URL, which browser will be read to this tag, immediately switch the corresponding kernel. and apply this behavior to all URLs under this level two domain name.
Currently this feature has been implemented in all secure browsers. We also recommend that other browser vendors work together to support this implementation. Make this control label an industry standard.


code example


Add a line of code to the head tag:


<meta name="renderer" content="webkit|ie-comp|ie-stand">

<body>

</body>


Content value is one of webkit,ie-comp,ie-stand, case-sensitive, respectively, represented by the WebKit kernel, IE compatible kernel, IE standard kernel.
If the page needs to be the default speed core, add Tags:<meta name="renderer" content="webkit">
If the page needs to use IE compatible kernel by default, add Tags:<meta name="renderer" content="ie-comp">
If the page needs to default to the IE standard kernel, add tags:<meta name="renderer" content="ie-stand">


Note: Quotation marks to the English state, the direct copy of the code to see the format is right, please correct yourself.

Technical details of each render core
Kernel Webkit IE compatible IE standard
Document mode Chrome 21 Ie6/7 Ie9/ie10/ie11 (depending on the user's IE)
HTML5 Support YES NO YES
ActiveX control support NO YES YES
Each kernel UA example




Note


Original address: http://www.ihref.com/read-16623.html



This function in fact and IE9 x-ua-compatible very similar, about the introduction of several kernel implementations of IE, see:
Http://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility-features-for-site-developers.aspx


Learn about the technologies used in speed mode and compatibility mode:

Fast mode uses the WebKit kernel, the WebKit kernel is the world's fastest browser core, while supporting a number of new web standards,
However, because the WebKit kernel is newer, some domestic websites have not yet supported this kernel well.

The compatibility mode uses the Trident kernel which is used by IE browser, and is the main browser kernel compatible with the domestic web page making, and has less compatibility problems.

The IE9/IE10 mode uses the new kernel used by the Ie9/ie10 browser, adding hardware acceleration, a new scripting rendering engine, and more standard HMTL5 and CSS3 support.


Use META tag code to make dual-core browser default fast mode open site is not compatible mode


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.