Implement a loading indicator for a jQuery AJAX call

前端 未结 6 1404
我在风中等你
我在风中等你 2020-12-04 05:54

I have a Bootstrap modal which is launched from a link. For about 3 seconds it just sits there blank, while the AJAX query fetches the data from the database. How can I impl

6条回答
  •  醉酒成梦
    2020-12-04 06:20

    A loading indicator is simply an animated image (.gif) that is displayed until the completed event is called on the AJAX request. http://ajaxload.info/ offers many options for generating loading images that you can overlay on your modals. To my knowledge, Bootstrap does not provide the functionality built-in.

提交回复
热议问题