Issue 1953: Some javascripts make huge CPU usage. http://code.google.com/p/chromium/issues/detail?id=1953
New issue report by ddanz81: Product Version : 0.2.149.29 (1798) URLs (if applicable) : http://www.bobkush.com/scripts/slideinmenu.htm http://www.dynamicdrive.com/dynamicindex1/staticmenu3.htm Other browsers tested Firefox 3: OK IE 7: OK What steps will reproduce the problem? 1. visit sites. What is the expected result? less than 3% CPU load. What happens instead? google chrome show huge CPU usage around 50%. Please provide any additional information below. Attach a screenshot if possible. Both sites have Static Sliding Menu javascript. and I found which part of it makes problem. Sample 1. <script type="text/javascript"> function makeStatic() { setTimeout("makeStatic()",0); } makeStatic(); </script> Sample 2. <script type="text/javascript"> function makeStatic() { smooth= 1 smooth = Math.abs(smooth); setTimeout('makeStatic()', 1) } makeStatic(); </script> Kind of math object doesn't make any different. Chrome looks like it has some problems in setTimeout(). Time variable might be too small, but other browsers's CPU usage is lower than 3%.. Issue attributes: Status: Unconfirmed Owner: [EMAIL PROTECTED] Labels: Type-Bug Pri-2 OS-All Area-Unknown -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-bugs" group. To post to this group, send email to chromium-bugs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/chromium-bugs?hl=en -~----------~----~----~----~------~----~------~--~---