大家有谁遇见过这个问题的:
程序打开直接阻塞了,点击屏幕出现上面提示,之后程序才能全部加载,但是之后还是会出现这些提示,导致程序卡顿;
Nexus 6 Build/MMB29S ,Android 6.0.1 ,Chrome版本50.0.2661.89
- 发布:2016-05-09 18:16
- 更新:2016-12-12 14:54
- 阅读:27161
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343
最佳回复
BoredApe - 有问题就会有答案。
此问题已解决,请升级HBuilder到最新版本(7.5),
目前的解决方案主要解决的是卡顿问题,控制台依然会输出long-running timer的信息,但不影响卡顿。
这个日志是由于定时监听touch造成的,具体参考https://segmentfault.com/a/1190000006053354
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.
基本跳到任何页面都会多出来这么一句,之前没这个问题,今天更新了hb的原因?
小云菜 - 相关代码及分享在http://www.cnblogs.com/phillyx
这个问题是浏览器本身对setTimeOut
的限制,看英文大概也明白什么意思了吧,延长setTimeOut
的时间间隔以提高滑动的平滑度。
估计是mui框架封装的scroll模拟插件(类似于iscroll)在滑动中使用了setTimeOut
来防抖,才会出现这个提示。
具体的内容可参考这个帖子高性能滚动 scroll 及页面渲染优化
jikeyshi - 没得介绍
我的首页用的是webview 选项卡,以前是首页就预载大量页面并获取大量数据的,现在只能把预载分散到其他页面了,同时首页创建4个webview改为先创建当前webview,点击选项卡时创建对应的webview,需要点击屏幕才能继续执行的问题勉强解决了,代价是牺牲了部分用户体验,低端机点击事件延迟严重,对于mui.openwindow需要点击屏幕才能显示的问题,我放弃了openwindow ,改为H5+案例的click方法,到勉强能够使用。
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343
这个还是继续大量报,暂时不管了,我也解决不掉。先保证APP 能正常使用再说吧,用户体验什么的等官方给出解决方案再慢慢完善了。
// 处理点击事件
var _openw=null;
var as='pop-in';// 默认窗口动画
function clicked(id,a,s){
if(_openw){return;}
a||(a=as);
_openw=preate[id];
if(_openw){
_openw.showded=true;
_openw.show(a,null,function(){
_openw=null;//避免快速点击打开多个页面
});
}else{
_openw=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'},{});
preate[id]=_openw;
_openw.addEventListener('loaded',function(){//叶面加载完成后才显示
_openw.showded=true;
s||_openw.show(a,null,function(){
_openw=null;//避免快速点击打开多个页面
});
s&&(_openw=null);//避免s模式下变量无法重置
},false);
_openw.addEventListener('hide',function(){
_openw&&(_openw.showded=true);
_openw=null;
},false);
_openw.addEventListener('close',function(){//页面关闭后可再次打开
_openw=null;
preate[id]&&(preate[id]=null);//兼容窗口的关闭
},false);
}
}
最新版本hbuilder,最新的helloMui,还是那个样子。手机是小米Note, Miui8 6.9.8开发版。安卓5.1.1. 报的消息如下:
正在建立手机连接...
正在同步手机端程序文件...
69 KB/s (5587 bytes in 0.078s)
正在启动HBuilder调试基座...
应用hMui已启动...
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at list.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index-menu.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/template.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_sub.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-contact.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-about.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-chat.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at list.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index-menu.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/template.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-setting.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_sub.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-contact.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-about.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-chat.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at list.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index-menu.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/template.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/slider-table-pagination.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-setting.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_sub.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-contact.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-about.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-chat.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at list.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index-menu.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/template.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/slider-table-default.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-setting.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_sub.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-contact.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-about.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-chat.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at list.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at index-menu.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/pullrefresh_main.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/template.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/grid-pagination.html:0
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343. at examples/tab-webview-subpage-setting.html:0
这个主要你A链接和 点击事件 。。太多了 尽量用
document.getElementById("").addEventListener("tap", function() {}
我下拉里面有a标签 用不聊 提示也是这个问题 如果加入document.getElementById("").addEventListener("tap", function() {}那么上拉加载效果没有用
jikeyshi - 没得介绍
我的首页用的是webview 选项卡,以前是首页就预载大量页面并获取大量数据的,现在只能把预载分散到其他页面了,同时首页创建4个webview改为先创建当前webview,点击选项卡时创建对应的webview,需要点击屏幕才能继续执行的问题勉强解决了,代价是牺牲了部分用户体验,低端机点击事件延迟严重,对于mui.openwindow需要点击屏幕才能显示的问题,我放弃了openwindow ,改为H5+案例的click方法,到勉强能够使用。
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343
这个还是继续大量报,暂时不管了,我也解决不掉。先保证APP 能正常使用再说吧,用户体验什么的等官方给出解决方案再慢慢完善了。
// 处理点击事件
var _openw=null;
var as='pop-in';// 默认窗口动画
function clicked(id,a,s){
if(_openw){return;}
a||(a=as);
_openw=preate[id];
if(_openw){
_openw.showded=true;
_openw.show(a,null,function(){
_openw=null;//避免快速点击打开多个页面
});
}else{
_openw=plus.webview.create(id,id,{scrollIndicator:'none',scalable:false,popGesture:'hide'},{});
preate[id]=_openw;
_openw.addEventListener('loaded',function(){//叶面加载完成后才显示
_openw.showded=true;
s||_openw.show(a,null,function(){
_openw=null;//避免快速点击打开多个页面
});
s&&(_openw=null);//避免s模式下变量无法重置
},false);
_openw.addEventListener('hide',function(){
_openw&&(_openw.showded=true);
_openw=null;
},false);
_openw.addEventListener('close',function(){//页面关闭后可再次打开
_openw=null;
preate[id]&&(preate[id]=null);//兼容窗口的关闭
},false);
}
}
唐自然 - 什么都会点,什么都不精通。╮(╯▽╰)╭
android 版本 6.0.1 手机型号 三星galaxy S6 edge+ 仍然会报
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343
tap事件仍然偶尔阻塞。。。
-
浏览器、设备信息
{
"ua": "Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-G9280 Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36",
"browser": {
"name": "Chrome",
"version": "44.0.2403.133",
"major": "44"
},
"engine": {
"version": "537.36",
"name": "WebKit"
},
"os": {
"name": "Android",
"version": "6.0.1"
},
"device": {
"model": "SM-G9280",
"vendor": "Samsung",
"type": "mobile"
},
"cpu": {}
}2016-11-27 21:46
jikeyshi
终于看到希望了
~~~~我要大哭两天2016-09-09 14:51
龙行天下2
是啊,请技术人员速度解决啊。。太卡了。
2016-09-09 14:53
洛洛尔
把潜水的我都激动地炸出来了
2016-09-09 17:00
tt0668
谢谢啊,厉害厉害。。。。激动等更新
2016-09-11 12:56
步步
期待中。。。
2016-09-12 10:26
步步
希望官方给出问题的根源分析和解决方案的详细介绍。我猜测跟浏览器内核的BUG有关。
2016-09-12 10:30
Element
最新的CHROME兼容性有问题,不过还是要适应CHROME,而不能让CHROME适应咱们
2016-09-12 11:25
3***@qq.com
官方终于冒泡了,激动(≧▽≦)/,希望能够解决问题,谢谢
2016-09-12 14:10
天涯逐浪
我已经每天守着这个页面一个多礼拜了,每天都要看看,泪崩啊,项目刚上线就遇到这个问题,官方终于有声音放出来了,希望能快点解决问题,同求问题的根源分析和解决方案的详细介绍。
2016-09-12 15:28
9***@qq.com
好多坑,这问题不解决,没人再会用
2016-09-12 20:27
草泥马二号
解决了吗
2016-09-13 11:14
步步
今天hbuilder更新后,测试发现并没有解决问题。。中秋节前官方能发出更新吗?期待官方的大礼包。
2016-09-13 11:40
Element
回复 步步:这么6
2016-09-13 16:55
tt0668
还看不到希望
2016-09-14 01:59
草泥马二号
感觉官方 没希望了
2016-09-14 10:02
天涯逐浪
不知道十一前能不能解决问题
2016-09-14 14:46
5***@qq.com
赶紧赶紧的呀,我们项目不知道何去何从了,前端整体切到RN的方案都整理出来了
2016-09-14 15:29
tt0668
来看看,还没希望
2016-09-16 06:51
gadget2k
还没有放出来吗?
2016-09-16 22:07
jikeyshi
感觉官方没希望了啊
2016-09-17 12:50
步步
官方能回复一下进度吗?我们等到花儿都谢了。。。
2016-09-18 08:29
步步
官方能回复一下进度吗?我们等到花儿都谢了。。。
2016-09-18 08:29
步步
官方能回复一下进度吗?我们等到花儿都谢了。。。
2016-09-18 08:29
w***@qq.com
赶紧哟,客户快要来验收了!
2016-09-18 16:15
洛洛尔
官方要是俩星期半月地解决不了就赶紧说一下好吗,好歹给人换方法的时间,别坑人啊
2016-09-18 16:19
jikeyshi
有多少人像我一样守着此贴的??看来年度热帖要华丽诞生了哈
2016-09-19 11:44
天涯逐浪
我基本上每天都要来看看
2016-09-19 13:26
步步
签到-2016-09-19
2016-09-19 13:57
tt0668
没希望
2016-09-19 14:11
Element
这个压缩包下下来就好了吗???
2016-09-20 08:43
步步
测试发现线上打包后,仍然没有解决卡顿问题。调试倒是可以了。
2016-09-20 09:38
Element
云打包的APK还是会出现这种问题
2016-09-20 10:00
步步
节前发更新吧,等太久了。
2016-09-21 08:43
jikeyshi
能给个具体的时间吗??
2016-09-22 09:42
gadget2k
一直没搞懂Hbuilder更新后,这里面有关app的更新应该怎样使用?是要重新生成一个hello mui然后从里面拷贝mui.js和mui.css吗?
2016-09-29 12:27
jikeyshi
调试没问题,在线打包后没什么变化吧
2016-09-29 13:49
jikeyshi
真机调试没问题了,怎么在线打包后还是一样,要点击好多次手机屏幕才能完全加载完,只有我一个人遇到这问题吗??
2016-10-08 16:39
3***@qq.com
回复 jikeyshi:问下这个更新之后需要重新生成mui.js么?我没搞懂更新里面APP那一项是怎么用
2016-10-11 16:24
jikeyshi
回复 3***@qq.com:貌似不用更新MUI.js ,前几天联系了磊子,我这边倒是没什么问题了
2016-10-11 23:42
lqdsj
建议 mui.js 中的setTimeOut 延迟时间全改成 50ms 以上
2016-10-17 11:24