Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: remove CSS variables polyfill #4487

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Sep 14, 2021

在之前的版本中,为了在低版本浏览器中兼容 CSS 变量,提供了一个 .theme 的 less 工具类,生成两份样式(一份包含 CSS 变量,一份不包含)。

CSS 变量从 iOS 9.3 版本开始支持,从最新版 @vant/weapp 开始,我们不再兼容 iOS 9.3 以下的设备,并移除 CSS 变量的兼容代码。

移除兼容代码后,包体积下降 7kb 左右。

@chenjiahan chenjiahan merged commit 1a78895 into youzan:dev Sep 23, 2021
@chenjiahan chenjiahan deleted the remove_css_var_polyfill_0914 branch September 23, 2021 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant