CSS Animations stall when running javascript function
问题 Let's say I have this javascript function: function pauseComp(ms) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < ms); } and a css3 animation (for instance, <i class="icon-spinner icon-spin"></i> from the new font-awesome 3). When I run the javascript function above, it stops the spinner while the function is running. See what I'm talking about here . Basically, javascript stops css animations, and I'm wondering why, or if anyone else has noticed