Chrome is leaking memory, when jQuery is used on events?
Posted
by user269386
on Stack Overflow
See other posts from Stack Overflow
or by user269386
Published on 2010-03-23T09:49:30Z
Indexed on
2010/03/23
9:53 UTC
Read the original article
Hit count: 307
Hi,
I'm experiencing an increase of memory usage, when I use the jQuery-eventhandling in Chrome. I've tested it with IE and FF as well, but there I couldn't see a suspicious rise of memory-usage, compared to Chrome.
I'm using Chrome version 4.0.223.16 (unfortunately I'm forced to use this version, here)
Simple example here. Just scroll with the mousewheel in the red box and open the Chrome-taskmanager and you will see an increase of memory which won't be released anymore:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="js/libs/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
jQuery(function () {
jQuery("#div1").bind("mousewheel", function (event) {
event.preventDefault();
});
});
</script>
</head>
<body>
<div id="div1" style="width: 100px; height: 100px; background-color: red;"></div>
</body>
</html>
Does anyone have experienced the same problem (or is it maybe solvend with a different version of chrome)? And does anyone have a fix for it?
thanks
© Stack Overflow or respective owner