Skip to content

Commit

Permalink
docs: remove unstable website
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Feb 26, 2024
1 parent 7f5f6c7 commit a032078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/blog/legacy-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {

export default {
headScripts: [
'http://polyfill.alicdn.com/v3/polyfill.min.js', // or https://polyfill.io/v3/polyfill.min.js
'http://polyfill.alicdn.com/v3/polyfill.min.js',
],
legacy: {},
};
Expand All @@ -94,7 +94,7 @@ export default {
| :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CDN 引入 | 以 cdn 形式引入 **script 形式且前置的** 、目标浏览器环境缺少的 polyfill js 文件,如 [es6-shim](https://github.com/paulmillr/es6-shim)|
| 人工 core-js | 利用 [core-js](https://github.com/zloirock/core-js) 系工具,如通过 [core-js-builder](https://github.com/zloirock/core-js/tree/master/packages/core-js-builder) 构建自己需要的 polyfill 产物,再以 **前置 script 脚本** 形式引入项目。 |
| 动态 polyfill 服务 | 使用根据当前浏览器请求 UA 动态下发所需 polyfill 的服务,比如 [polyfill.io](https://polyfill.io/v3/polyfill.min.js) ,考虑到速度,可使用国内的 [alicdn polyfill.io](http://polyfill.alicdn.com/v3/polyfill.min.js) 服务。另外,你还可以使用 [polyfill-service](https://github.com/Financial-Times/polyfill-service) 自建相同的动态 polyfill 下发服务。 |
| 动态 polyfill 服务 | 使用根据当前浏览器请求 UA 动态下发所需 polyfill 的服务,比如 [polyfill.io (alicdn)](http://polyfill.alicdn.com/v3/polyfill.min.js) 服务。另外,你还可以使用 [polyfill-service](https://github.com/Financial-Times/polyfill-service) 自建相同的动态 polyfill 下发服务。 |

注:

Expand Down

0 comments on commit a032078

Please sign in to comment.