# Spinner without blocking UI

**URL:** <https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607>\
**Category:** ionic-v1\
**Created:** [June 1, 2015, 4:39pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607 "2015-06-01T16:39:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeon](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mikeon](https://forum.ionicframework.com/u/mikeon)\
**Post date:** [June 1, 2015, 4:39pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/1 "2015-06-01T16:39:34Z")

</div>

Is it possible to use:

```
        $ionicLoading.show({
        template: '<ion-spinner class="spinner-energized" icon="spiral"></ion-spinner>',                
        duration: 15000,                
        });

```

without blocking UI and use only animated svg? I want to show that icon when trying to getlocation.

---

<div class="post-metadata">

**Author:** ![nnnnnorthhhhh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nnnnnorthhhhh/32/98566_2.png) [@nnnnnorthhhhh](https://forum.ionicframework.com/u/nnnnnorthhhhh)\
**Post date:** [June 1, 2015, 4:41pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/2 "2015-06-01T16:41:19Z")

</div>

This has been answered a few times on the forums if you do a quick search I’m sure you’ll find the answer 😉

---

<div class="post-metadata">

**Author:** ![mikeon](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mikeon](https://forum.ionicframework.com/u/mikeon)\
**Post date:** [June 1, 2015, 4:56pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/3 "2015-06-01T16:56:49Z")

</div>

Heh, as always, before question I do research on forum and google. I done it now again, and nothing new. But before writing this reply, I thought, It will be nice to show some information, and ended in [toastr](https://blog.nraboy.com/2014/09/show-native-toast-notifications-using-ionic-framework/). But this question still remain. Thanks anyway.

---

<div class="post-metadata">

**Author:** ![nnnnnorthhhhh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nnnnnorthhhhh/32/98566_2.png) [@nnnnnorthhhhh](https://forum.ionicframework.com/u/nnnnnorthhhhh)\
**Post date:** [June 1, 2015, 4:58pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/4 "2015-06-01T16:58:50Z")

</div>

> **[$ionicLoading, is there a way to cancel loading?](http://forum.ionicframework.com/t/ionicloading-is-there-a-way-to-cancel-loading/2939)**
>
> Hello Guys. Is it possible to cancel the loading spinner by the user when it is taking a long time, like a cancel button or just touching the screen? Thank you.

> **[Modal not receiving touch events](http://forum.ionicframework.com/t/modal-not-receiving-touch-events/8025)**
>
> Hi, My modals aren't receiving touch events; specifically, pointer-events: auto is being overriden: In the picture of webkit inspector above, the pointer-events: auto is being superseded by the pointer-events: none. A solution is to do the...

> **[$ionicLoading but with some way to detect taps](http://forum.ionicframework.com/t/ionicloading-but-with-some-way-to-detect-taps/25073)**
>
> Hi, is there a construct in ionic that displays a loading message, just like $ionicLoading but also allows me to detect taps outside the message so I can cancel that loading message? I basically have a situation where a function gets called, say,...

---

<div class="post-metadata">

**Author:** ![mikeon](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mikeon](https://forum.ionicframework.com/u/mikeon)\
**Post date:** [June 1, 2015, 5:11pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/5 "2015-06-01T17:11:00Z")

</div>

Thanks @NorthMcCormick. I don’t know why I focused on words “Spinner, blocking, nonblocking ui”…

Those solutions shows how to cancel $ionicLoading, not exactly what I mean. Probably I should only use toastr to show small info, instead of using non-blocking spinner on the middle of app.

---

<div class="post-metadata">

**Author:** ![nnnnnorthhhhh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nnnnnorthhhhh/32/98566_2.png) [@nnnnnorthhhhh](https://forum.ionicframework.com/u/nnnnnorthhhhh)\
**Post date:** [June 1, 2015, 5:12pm UTC](https://forum.ionicframework.com/t/spinner-without-blocking-ui/25607/6 "2015-06-01T17:12:58Z")

</div>

No problem, ionic has a lot of different terms for things not to mention you can have names for the native, ionic, and web version of things haha.

The reason those are relevant however is they will show you different ways to customize that loading element or create your own entirely, this way you can have it not block the ui, show your custom SVG spinner, that kind of thing. You have to be creative when doing this stuff and because it is JUST css and javascript, you’ve got the entire web on your side. Don’t be afraid to really think out of the box
