开发者

css/javascript visibility visible/hidden is very slow on Blackberry

开发者 https://www.devze.com 2023-01-17 22:52 出处:网络
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 unusabl
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.

0

精彩评论

暂无评论...
验证码 换一张
取 消