我可以删除这个文件" html5shiv.googlecode.com/svn/trunk/html5.js"来自我的网站?

时间:2016-11-24 10:34:18

标签: javascript php wordpress

我在我的网站上有这个代码,我想知道是否有任何使用它?

<!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->

这是我的网站https://www.sydneycityremovalists.com.au/

1 个答案:

答案 0 :(得分:1)

polyfill或polyfiller是一段代码(或插件),它提供了开发人员期望浏览器本机提供的技术。如果愿意,可以展平API格局。

[8, 0, 63, 0, 23, 0, 0, 0, 34]

以下是一个示例:<!--[if lt IE 9]> <script src="https://raw.githubusercontent.com/aFarkas/html5shiv/master/dist/html5shiv.min.js"></script> <![endif]--> 可用于所有最新浏览器(IE8及更高版本)但不在IE7及更低版本中。填充可用于插入对未提供的旧浏览器的支持sessionStorage

如果您希望对较低版本的用户代理(浏览器)有用,请不要删除。在您的情况下,当IE浏览器低于9.0版时,Js加载。