document.getElementById("spinner开发者_如何学Go2").style.visibility="visible"
Visibility visible/hidden is very slow on Blackberry (OS4.6). The screen seems to be redrawing which makes it unusable in Ajax application.
The goal is to put visible feedback to user while ajax request completes.
Can anyone any suggest any alternatives?
If you change the layout you'll get redraw. If a single redraw is slow then you're layout is too heavy for a mobile application i guess.
Is document.getElementById("spinner2").style.display = "block"
any better? You would have to start with display: none
on the spinner element, and you would need to put it in a fixed box (div) to keep it from re-flowing the layout.
精彩评论