views:

132

answers:

3

Hi, im writing some code to move dinamically an element on my page. If i try to apply this at img element with generous dimension i notice in IE a very slow down effect. Also, if the image is not displayed with its full size, IE seems to be more more slow. I think IE apply a sort of resize algorithm for img every time it is refreshed...

There are some workaround for this?

Firefox and Opera are very very fast in this.

+1  A: 

You can replace the image with a box (a DIV) when it starts moving, and replace the image when the move is complete.

JavaScript frameworks (like jQuery or Scriptaculous) often have optimized code for this type of activity and handle these problems internally for you.

Diodeus
A: 

But a div background can't be resized at desidered size, it keep the original dimension, isn't true?

blow
Do not post an comment as an answer, post a comment.
Diodeus
A: 

damn browser, it makes the life dificult... i red somewhere that having backgrounds with repeated images, resized images or partially hidden images slows down ie.

ie works worse than other browsers on its own operating system, why does such a browser exists...

by the way, how do i mark this message as a comment, not answer?

Asteroth