首屏渲染有段白屏时间,建议在APILoader判断用户已自引入amap.js时可不用异步重新加载
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
+ [x] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。
+ [x] 我已经搜索过[文档](https://elemefe.github.io/react-amap/articles/start),并且仍然没有找到解决方案。
+ [ ] 我写了个问题重现的例子,链接或者代码将会贴在下面。
#### Reproduce Example Link or Code Fragment
#### What is Expected?
首屏渲染出DOM后才去请求amap.js,amap加载初始化还需要一些时间。
建议允许用户自己引入amapjs以及amapui。
在APILoader中判断window是否已经挂载Amap,如果未挂载则请求,已挂载则resolve跳过请求继续执行.
#### What is actually happening?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.