polyfill
一个polyfill
Browser Support and Polyfill . Wrote a polyfill for some unrealized DOM standards. Browser Support and Polyfills . 在我的笔记本电脑上,初始页面加载需要5秒,而polyfill 与1没有。 On my laptop, initial page load takes 5 seconds with the polyfill vs 1 without. Browser support and polyfilling .
使用标准JS函数,如果您的浏览器不支持它们-使用polyfill . Do it with standard JS functions, if your browser don't support them- use polyfill . Find more info about this polyfill here. ECMAScript6正式将Promise纳入标准并为其提供可用的Polyfill 。 ECMAScript 6 formalizes promises and makes them available by default . DefineGetter__可能会破坏polyfill 。 DefineGetter__ could break the polyfill . 除了优雅降级,加载器还可用于引入polyfill 。 In addition to graceful degradation,the loader can be used to bring in a polyfill . 不过,有些特性是没办法通过polyfill (用“旧”代码替换)解决的。 However, certain features cannot be polyfilled (replaced with"older" code). 如果您在不受支持的浏览器中需要indexOf,请尝试以下polyfill 。 If you need indexOf in an unsupported browser, try the following polyfill . 存在那些可选用的polyfill (特别是Babel),你可以试着使用它们。 There are polyfill options(especially Babel) so that you can play around with them today. 其实我们能做的更好,我们可以只import代码中用到的polyfill 。 But we can do better by only importing the polyfills that are used in the codebase. 与其他方法相比,polyfill 是更可靠的解决方案,但仍然不够完美。 This polyfill is a more robust solution compared to other approaches, but it's still not perfect. 然而,与那些涉及语法的特性不同,这些功能在大部分情况下都是没有办法通过polyfill 实现的。 However, unlike syntax-related features, these, in most cases, are impossible to polyfill . 我们需要使用polyfill 是因为CacheAPI尚未在所有浏览器中得到完全支持。 We need to use the polyfill because the Cache API is not yet fully supported in all browsers. 你将如何采用此技术“polyfill ”支持不支持特定功能的浏览器?? How would you adopt this technology and“polyfill ” support for browsers that don't support a given feature? Js变得不是那么紧急,例如,存在一个反向的polyfill -能将asm. Js is less urgent because of the existence of alternatives, for example, a reverse polyfill - compiling asm. 十二月份,Google把他们自己的PointerEventsPolyfill (PEP)转让给了jQuery基金会。 In December, Google transferred ownership of the Pointer Events Polyfill (PEP) to the jQuery Foundation. 一个isNaN的polyfill 可以理解为(这个polyfill利用了NaN自身永不相等于自身这一特征):. A polyfill for isNaN would be(the polyfill leverages the unique never-equal-to-itself characteristic of NaN):. Safari也有支持,但到目前为止,Safari仍然依赖于Polyfill ,就像Firefox一样。 Support is coming to Safari as well, but, until that happens, Safari still relies on the polyfill , just like Firefox. 根据Modernizr网站的说法,polyfill 是“在旧版浏览器上复制标准API的JavaScript补充”。 According to the Modernizr Web site, a polyfill is“a JavaScript shim that replicates the standard API for older browsers.”. 在某些情况下,”caution”和”use”关键字后附加了”withfallback”或“withpolyfill ”。 The"caution" and"use" keywords are in some cases further qualified with the phrases"with fallback" or"with polyfill .". IE11可能需要polyfill 和Chrome的广告,但它都被混淆了,我不会再进一步折磨自己了。 IE11 probably needs polyfills and the Chrome advertisement but it's all obfuscated and I'm not going to torture myself any further. YouTube为Firefox和Edge提供了ShadowDOMpolyfill ,这不足为奇,比Chrome的原生实现要慢。 YouTube serves a Shadow DOM polyfill to Firefox and Edge that is, unsurprisingly, slower than Chrome's native implementation. 前者仅包含Babel的辅助函数,后者包含辅助函数以及polyfill 函数(例如Symbol、Promise)。 The former only contains Babel's helper functions and the latter contains that as well as any polyfill functions(e.g. Symbol, Promise). 除了在InternetExplorer中添加对新的HTML5元素的支持外,Modernizr库默认不提供任何额外的polyfill 。 Beyond its use to add support for new HTML5 elements in Internet Explorer, the Modernizr library doesn't provide any additional polyfills out of the box. 支持WASI的应用程序目前可以使用polyfill 在浏览器中运行,或者用Mozilla的Wasmtime或Fastly的Lucet在浏览器外部运行。 WASI-enabled apps can currently be run in the browser with a polyfill , or outside the browser with Mozilla's Wasmtime, or Fastly's Lucet.
Display more examples
Results: 29 ,
Time: 0.0199