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

在生命周期内调用getSystemInfo,优化首屏性能 #33

Closed
heden9 opened this issue Jul 6, 2020 · 0 comments
Closed

在生命周期内调用getSystemInfo,优化首屏性能 #33

heden9 opened this issue Jul 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@heden9
Copy link

heden9 commented Jul 6, 2020

背景

请描述你所遇到的问题现状
目前的实现在生命周期外部调用了同步的JSAPI,由于小程序打包产物为单文件,会影响小程序的核心耗时,根据实验室测试数据,影响范围大概在200ms左右。

期望

请描述你所希望添加的功能

在组件的onInit中调用异步的方法获取启动参数

思路

对于你所描述的问题,是否已有解决方案或者思路,如有可提供作为参考,或者提交你的 PR 、截图

@heden9 heden9 added the enhancement New feature or request label Jul 6, 2020
heden9 pushed a commit to heden9/mini-ali-ui that referenced this issue Jul 6, 2020
@linxz linxz closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants