Background:
Because the JS style of the company's business system has problems in the default compatibility mode of the 360 browser, it is hard to find a variety of solutions so that the default speed mode is preferred, I didn't expect the help Forum of 360 browser to be explained as follows:
Browser kernel control meta tag descriptionBackground
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 360 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 360 browser which kernel should be used for rendering the URL, the 360 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 360 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 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">
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
Remarks
This function is similar to X-UA-compatible of ie9. For more information about the implementation of several ie kernels, see:
Http://blogs.msdn.com/ B /ie/archive/2010/06/16/ie-s-compatibility-features-for-site-developers.aspx
If you click the switch browser mode button, the following prompt will be displayed:
360 the browser gives priority to the speed mode