The loading spinner, indicator, leading icon whatever you say will be displayed until all the records not fetched. One thing I will do, the user can’t do anything until data is not loaded. I mean mouse will be disabled for that particular browser tab. Since you might want to use different spinners at times, which have a different width, the CSS shouldn't hardcode the width. You can center an item vertically in a flexbox, and then use margin: 0 auto; on the item to be centered horizontally. #pluswrap { position: fixed; width: 100%; height:100%; display: flex; align-items: center; top: 0 CSS Loader Examples From CodePen. Making a CSS loader, preloader or spinner has become more and more popular in the last few years thanks to the rise of JavaScript frameworks like Vue, Angular and React. They are mostly used when the website or application needs to load for the first time, or if it’s performing a long process. So, the majority of your delay is happening at step 1, but a CSS/JS spinner won't load until step 4. If you want to use a spinner, you need to load the data via async Ajax, so you can load the spinner in 4, then finish loading data and remove spinner in 5. Using jQuery Ajax: Do you want to add a spinner icon to your button when it is in the loading state? Learn how to use the data-loading-text attribute and the disabled class in Bootstrap to achieve this effect. See the code examples and the answers from other developers on Stack Overflow. jQuery UI offers a combination of interaction, effects, widgets, utilities, and themes designed to work well together or on their own. Play with the demos, view the source, build a theme, read the API documentation and start using jQuery UI today. Interactions. Interactions add basic mouse-based behaviors to any element. Chrome, IE9+, FireFox, Opera, Safari #loading spinner #loading overlay. loadingoverlay.js is a simple, flexible jQuery plugin which shows a highly customizable loading overlay with custom spinners while loading some data within a specific container. You can find advanced examples in the official documentation page. The Kendo UI for jQuery Loader provides a visual indication that expresses an indeterminate wait time. It informs users about the status of ongoing processes, such as loading an application, submitting a form, saving updates, or fetching data. The current demo shows three Loader components: small, medium, and large. I am using bootstrap 3 tabs and using ajax to load the content of each tab on tabbed. But sometimes it takes time to load up the content when the server gets slower. Therefore, I would like to put a spinner in the tab content until the server returns the tab content back. First of all, is there a built-in easy option to achieve this? Loading Overlay. jQuery Loading Overlay Plugin. Uses Javascript to add/remove a loading overlay to a target element. It can be called on any element that should receive the loading overlay, and accepts options for class selectors and loading overlay text. The overlay itself must be styled via CSS. UXPc1.