Jquery scrollTop performance in IE 8

I am using jQuery.scrollTop to scroll the image in a div. It works great in Firefox - scrolling is very smooth and fast. In IE 8, scrolling is very slow and buggy - the image scrolls once per second - two seconds. The average image size is 2000 * 2000 and 4000 * 4000 pixels.

Is there a way to improve this for IE 8?

Performance in IE 7 is slightly better, but still not enough.

thank

Edit: I believe the problem is how scrolling is implemented in IE 7 and 8. I enabled both scrollbars (overflow-x and overflow-y), and I tried scrolling the image using these scrollbars. The problem is exactly the same. I tried to run this on a rather low-power PC - a dual-core Pentium processor with two cores with 2 GB of RAM, as well as on the Core i7 desktop with RAM RAM with a clock frequency of 2.8 GHz, and the results are almost identical. FireFox scrolls much faster, but its CPU load is on average 10% higher than using the IE processor. That leaves me puzzled ... of course, would Microsoft already consider this problem?

Another thing that I found a bit strange is that scrolling was faster on a Core 2 Duo laptop. I'm wondering if this has anything to do with graphics card drivers ... IE 7/8 even uses a GPU?

Sorry if this sounds silly, but I'm really interested in solving this problem ... IE can't be that bad.

+5
source share
1 answer

jQuery is .scrollTop()obviously slower i.e. and if the markup is even a little complicated or large, you will never succeed.

The solution is not to use the jQuery function .scrollTop(), but to create your own based on your own .scrollHeightand properties .scrollTop.

, , jQuery .scrollTop() - DOM , ..

jQuery , , - .

, , jQuery - - , , , .. / , .

+6

All Articles