Image

Imagemonsterzz wrote in Imagewebdev 😦tired work

Listens: iTunes — Some house music

IE7 freezing when QuickTabs feature enabled.

I have a big web application, written in JS,CSS,XML/XSLT.
Output size of HTML is 1.5Mb, ~700Kb javascript code, ~400Kb CSS code.

When user open new tab (or use Quick-Tab feat.) IE try to generate thumbnail for this page. But page is so big, so IE freeze for 5-15 minutes. It's awfully. Solution of this problem is hiding all content (style.display = 'none' on general wrapper div.), this code was wrote in onblur event of the body element.

Sometimes this solution works, sometimes not.

Actually, the question:
How I can catch tab-changing event? (seems to be eq. with body onblur).

Thanks for advice.
Best regards, Gleb M. Borisov.

Update: Problem partially solved with code below:

<body
onblur="if(event.clientY<0){setTimeout(function(){document.body.firstChild.style.display='none';},0);}return false;"
onfocus="setTimeout(function(){document.body.firstChild.style.display='block';},0);return false;"
>