当ember.js对象加载时,动画GIF暂停 [英] Animated gif pauses when ember.js objects are loading
问题描述
当ember.js正在做这件事情时,微调器的问题实际上是旋转的。我有一个非常通用的jsfiddle示例说明了这个问题:
Having a problem with a spinner actually spinning while ember.js is doing it's thing. I have a very generic jsfiddle example that illustrates the issue:
我认为必须有一个简单的方法来使这项工作按预期,但我没有找到它。我已经尝试使用具有相同结果的微调器(spin.js)的JavaScript / CSS实现。我看到一些东西表明这通常是一个IE问题,但情况并非如此。这在Windows上的所有浏览器上都会发生,我也在Mac Safari上进行了测试。
I assume there has to be a simple way to make this work as expected, but I am not finding it. I have tried using a JavaScript/CSS implementation of a spinner (spin.js) with the same results. I saw some stuff indicating this was typically an IE issue, but that is not the case here. This happens on all browser on Windows and i have tested on Mac Safari as well.
推荐答案
根本原因,@ChristopherSwasey是正确的。我问了几个这样的Ember开发人员。没有解决方案,但有两个有趣的想法可能有帮助:
As far as root cause, @ChristopherSwasey is correct. I asked a few other Ember developers about this. No solution, but two interesting thoughts that might help:
1)一位开发人员报告说,他遇到了这个问题,并确定了gif开始之前的动画GIF长时间的JavaScript执行。
1) One developer reported that he has run into this problem and gotten around it by making sure the animated gif started before the long javascript execution.
2)另一位开发人员建议使用虚拟化列表是正确的路径,以便只渲染可见节点。但是,我恐怕我不知道一个开源的Ember虚拟化列表类。
2) Another developer suggested that using a virtualized list is the right path, so that only visible nodes are rendered. However, I'm afraid I don't know of an open source Ember virtualized list class yet.
希望有帮助。
这篇关于当ember.js对象加载时,动画GIF暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!