This article mainly introduces how to determine whether the 360 Secure Browser kernel is fast, and compares and analyzes the differences between the 360 Secure Browser and other mainstream browser kernels and their corresponding judgment skills, if you need it, refer to the examples in this article to describe how JS judges whether the 360 Secure Browser kernel is faster. Share it with you for your reference. The specific analysis is as follows:
360 Secure Browser kernel speed. The navigator. userAgent on non-360 websites is:
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1", all use the userAgent of the native Google browser;
In contrast, the navigator. userAgent of 360's website is
: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 QIHU 360SE", which contains the 360 ID;
Therefore, in our own development process, it is difficult to know the 360 speed kernel;
The following method is extracted from the plug-in a front-end Blog. this method can be used to determine the speed kernel of the 360 Secure Browser.
The code is as follows:
Function is360se (){
Var where = "suffixes", value = "dll", name = "description", nameReg =/fancy /;
Var mimeTypes = window. navigator. mimeTypes, I;
For (I in mimeTypes ){
If (mimeTypes [I] [where] = value ){
If (nameReg. test (mimeTypes [I] [name]) return false;
}
}
Return true;
}
I hope this article will help you design javascript programs.