简体   繁体   English

调用API时,加载程序图片未在Chrome中加载

[英]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.

相关问题 在C#中调用&#39;DataWarehouseGetReportData&#39;时API异常 - API exception while calling 'DataWarehouseGetReportData' in C# 从Angular Js(Java Web)调用API时发生CORS错误 - CORS error while API calling from Angular Js (Java web) 调用Restful API时导致IOException的httpUrlCon.getInputStream() - httpUrlCon.getInputStream() causing IOException while calling Restful API 使用Apache CXF调用SOAP API时发生ClassCastException - ClassCastException while calling SOAP API using Apache CXF 如何在调用API时减少C#中的执行时间? - How to reduce the execution time in C# while calling an API? 调用api时如何以角度获取错误响应? - how to get error response in angular while calling an api? Android从Asmx Web服务加载图像时触发OutOfMemoryError - Android fires OutOfMemoryError while loading image from asmx web service 加载限制策略时,WSO2 API Manager服务API调用失败 - WSO2 API Manager service API call failure while loading throttling policy 在改造中调用api时未找到响应消息和响应代码404 - Response Message-Not Found and Response code-404 while calling the api in retrofit 调用WebMethod时发生NullReferenceException - NullReferenceException while calling WebMethod
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM