Use META tag code to make dual-core browser default speed mode not compatibility mode

Source: Internet
Author: User
Tags code tag control label



This article mainly describes the use of META tag code to let dual-core browser default speed mode to open the site is not compatible mode, the need for friends can refer to the next



This article mainly describes the use of META tag code to let dual-core browser default speed mode to open the site is not compatible mode, the need for friends can refer to.



A website, a large number of HTML5 and CSS3, I hope users are webkit kernel open page, but the test found that of the IE kernel opened as the recommended mode, I do not know why. 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









Indicates compatibility mode






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:







Xml/html code copy content to clipboard
<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 tag: <meta name= "renderer" content= "WebKit"/>






If the page needs to default IE compatible kernel, add tag: <meta name= "renderer" content= "Ie-comp"/>






If the page needs to default with IE standard kernel, add tag: <meta name= "renderer" content= "Ie-stand"/>










Here is a problem, the official message to the end is ">", the actual test does not work, this time as long as the end is changed to "/>" (note/preceded by a space), the test is feasible.










Technical details of each render core










Kernel Webkit IE compatible IE standard
Document Mode Chrome IE6/7 ie9/ie10/ie11 (depending on the user's IE)
HTML5 Support Yes NO Yes
ActiveX controls support NO Yes Yes







Each kernel UA example






















Note




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.




The article comes from the assault news: http://news.tuxi.com.cn/news/22/225475.html



Use META tag code to make dual-core browser default speed mode not compatibility 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.