components icon indicating copy to clipboard operation
components copied to clipboard

md-spinner freezes during javascript execution

Open conner-fallone opened this issue 9 years ago • 11 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

md-spinner is unaffected by javascript execution

What is the current behavior?

md-spinner locks up during any sort of javascript execution. Sometimes it slows down during execution as well, and the spinner will look different (like a small circle going around)

What are the steps to reproduce?

Execute javascript code while the spinner is visible (see plnkr) https://plnkr.co/edit/dwIOBUploDOpy8tvMBvd?p=preview

What is the use-case or motivation for changing an existing behavior?

Usability - the spinner should spin while something is happening. A frozen spinner doesn't indicate that something is loading.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 4.23 Material: 2.0.0-beta.8 OS: Windows 8.1

conner-fallone avatar Jul 27 '17 18:07 conner-fallone

This is something we are looking at to fix. The spinner should rely on CSS rather than javascript for its animation so it isnt blocked on the main thread.

andrewseguin avatar Jul 27 '17 22:07 andrewseguin

Is there any update on the progress for this? It's somewhat urgent on our team or we will have to resort to another spinner, as not only does it sometimes freeze, but sometimes the animation gets truncated into just a dot and looks very awkward.

conner-fallone avatar Aug 23 '17 14:08 conner-fallone

workaround: I temporarily replaced it with a gif spinner built online, it was super easy and spinner is almost identical. I hid svg part of md-spinner with css and added my gif as a background.

siebmanb avatar Aug 23 '17 14:08 siebmanb

I've tried a .gif spinner and unfortunately had the same result for some reason

conner-fallone avatar Aug 23 '17 14:08 conner-fallone

I hope this gets reclassified. For us it's not minor, as the loading icons jerk all over the place during async content loads, which defeats the whole idea of smooth experience in a single page app.

Might have to resort to a basic CSS only spinner in the meantime, as this was raised back in July, and its now Nov, so looks like it will be a long time coming.

Through my testing, can confirm that the CSS only spinners I tried don't freeze during JS.

russelltrafford avatar Nov 08 '17 20:11 russelltrafford

The spinner is now totally css-based. Have you tried it with the latest release?

jelbourn avatar Nov 08 '17 20:11 jelbourn

If the spinner is CSS based, then why is the ticket still open? Does this resolve the issue, and which version resolved the issue?

samqhr avatar Nov 10 '17 17:11 samqhr

Update: Looks like fixed version was 2.0.0-beta.12 marble-mustache according to the changelog, which is why I was still seeing this issue on beta.10

https://github.com/angular/material2/blob/master/CHANGELOG.md

samqhr avatar Nov 10 '17 17:11 samqhr

Closing as fixed. Feel free to open a new issue if something is still not behaving correctly.

jelbourn avatar Nov 10 '17 17:11 jelbourn

Ok thanks for the update @jelbourn and @samqhr for checking the changelog updates

russelltrafford avatar Nov 10 '17 17:11 russelltrafford

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.