opera.beta
[Top] [All Lists]

Re: ATTN opera staff (waas Re: bug with snajper.net

Subject: Re: ATTN opera staff (waas Re: bug with snajper.net
From: "Andrew Gregory"
Date: Mon, 26 May 2008 20:03:59 +0800
Newsgroups: opera.beta


On Mon, 26 May 2008 04:05:28 +0800, David W. Hodgins <dwhodgins@xxxxxxxxxxxxxxxxx> wrote:

Can someone from opera staff more familiar with javascript take
a look at this thread?

I'm not Opera staff, but I've had a look at it anyway.

The problem only occurs when the page is loaded from the site and it doesn't already exist in the cache. Once it's in Opera's cache, the problem does not occur. If the page is loaded fresh then you get 100% CPU. Reloading from cache fixes that, as does a regular reload. Closing the browser and restarting it at that point does not invoke the problem either, unless you empty the cache before re-opening the site. If the sites Javascript is blocked, the problem does not occur (eliminating the Google Analytics script).

My suspicion is the "document.onmousemove = mouseMove;" line. The reason being that this line will likely execute before the page content (document) it's registering on has actually loaded. When loading from cache, it's likely the document is whipped out of the cache and created before the JS executes. I'd move that event registration into an "onload" handler and see what happens.

HTH,
--
Andrew Gregory
<URL: http://www.scss.com.au/family/andrew/ >

<Prev in Thread] Current Thread [Next in Thread>