[英]Loader image is not loading in chrome, while calling an API
I have the issue in chrome browser. 我在chrome浏览器中有问题。
Loader image or text not loading, while API calls. API调用时未加载加载程序图像或文本。
Chrome delays other actions while calling API and down into stuckness. Chrome会在调用API时延迟其他操作,直至陷入困境。
My code structure is 我的代码结构是
Placed a span with loader background,
<span id='logging' class='hide'></span>
Click on 'Login' Button,
{
dojo.query('#logging').removeClass('hide'); // Show the loader
<API Call Script here.>
dojo.query('#logging').addClass('hide'); // Hide the loader
}
It has been working in browser IE, Firefox .. etc, but not in chrome browser 它已在IE,Firefox等浏览器中运行,但在chrome浏览器中却无法运行
Can anyone help? 有人可以帮忙吗?
Thank You. 谢谢。
Have you extended the query correctly with the functionality youre using? 您是否使用您使用的功能正确扩展了查询? dojo.query is loaded differently in regards to whether or not the native selector-engine is 'sufficient'.. dojo.query在关于本机选择,发动机是否是“足够”有不同的加载..
Try adding (1.7+ only) a require to dojo/NodeList-dom around the query calls 尝试在查询调用周围添加(仅1.7+)需求到dojo / NodeList-dom
require(["dojo/query", "dojo/NodeList-dom"], function(dj_query){
dj_query('#logging').removeClass('hide'); // Show the loader
<API Call Script here.>
dj_query('#logging').addClass('hide'); // Hide the loader
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.