关于Fiori application里取Account image的Odata request是否会阻塞UI的问题讨论

简介: Question

From: Wang, Jerry


Sent: Friday, 19 June, 2015 4:31 PM


Subject: RE: [Follow up] Why the synchronous request did not BLOCK the UI


Hi all,


这个issue很有意思,昨天和德国同事开会时,他们问我们为什么我们code里写的odata request是同步的,但是并没有block 住UI。当时我没答上来,因为确实我看起来也是没block UI。

今天我做了研究,通过图表和视频 理直气壮地告诉他们:代码没问题,是我们眼睛犯错了。视频在下面的share folder里。研究思路在下面的邮件里。


Please read more detail from Jerry’s mail.


Jerry’s analysis process

手动在后台reques响应里加上一个延时,来模拟后台耗时很长的scenario.

image.png

Then I test in UI with this modified Odata implementation. Now as expected it took around 13 seconds to get the returned image url.

During this timeframe, UI is completely freezed: end user does not have any chances to click anything in UI.


Synchronous mode

Afterwards the synchronous behavior is quite obvious now. I click one item in navigation list to trigger the synchronous request for Image url retrieval. And after that, I cannot do any operation on UI - it is completely freezed.

image.png

相关文章
|
1月前
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
SAP UI5 Link 控件的使用方法介绍 - 后续学习 Fiori Elements Smart Link 的基础试读版
15 0
|
3月前
|
开发框架 JSON 开发者
SAP Fiori Tools 的 Application Information 视图里的 Min UI5 Version
SAP Fiori Tools 的 Application Information 视图里的 Min UI5 Version
18 0
|
6月前
|
开发者 容器
SAP UI5 Fiori Elements annotation 解析出来的 entity container
SAP UI5 Fiori Elements annotation 解析出来的 entity container
29 0
|
6月前
|
XML JavaScript 前端开发
SAP UI5 Fiori Elements annotation 文件序列化成 DOM 对象的逻辑
SAP UI5 Fiori Elements annotation 文件序列化成 DOM 对象的逻辑
29 0
|
6月前
|
Web App开发 缓存 前端开发
回答朋友提问:Fiori UI 中如何知道当前系统 Client ID (一)
回答朋友提问:Fiori UI 中如何知道当前系统 Client ID (一)
42 0
|
6月前
|
存储 缓存 安全
什么是 SAP UI5 Application Index
什么是 SAP UI5 Application Index
38 0
|
6月前
|
自然语言处理 JavaScript 前端开发
使用 SAP Business Application Studio 在浏览器环境里开发 SAP UI5 应用试读版
使用 SAP Business Application Studio 在浏览器环境里开发 SAP UI5 应用试读版
51 1
|
6月前
|
Web App开发 XML 前端开发
部署 SAP UI5 应用到 SAP BTP 时遇到的 fiori not found 错误消息
部署 SAP UI5 应用到 SAP BTP 时遇到的 fiori not found 错误消息
45 0
|
6月前
|
移动开发 网络架构 HTML5
如何在 SAP Business Application Studio 里创建 SAP UI5 应用并部署到 BTP 平台上
如何在 SAP Business Application Studio 里创建 SAP UI5 应用并部署到 BTP 平台上
50 0
|
6月前
|
缓存 JavaScript 前端开发
SAP UI5 Tools 运行了 fiori add deploy-config 命令之后,工程文件发生了哪些变化
SAP UI5 Tools 运行了 fiori add deploy-config 命令之后,工程文件发生了哪些变化
32 0

热门文章

最新文章