I think the forced CollectGarbage();  makes a big difference.  I had the
same problem and calling this worked wonders.  I remember reading that if a
page uses a newwin=window.open that you've created an explicit reference to
the new window and the 10-12 second lag (with layer intensive pages) is
probably IE waiting on an internal reference check or possibly the random
call it makes to it's own CollectGarbage();

Nice find Darryl.  Probably sheads some light on the overall GC problem.

Thanks,

Ray
----- Original Message -----
From: "Raymond Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 2:58 PM
Subject: Re: [Dynapi-Help] window.open and IE


> Darryl,
>
> A little feedback from the trails of site optimization.  For your title
page
> you should build a "static park frame" in your flash movie and when a
> secondary window is launched send the title page window to "park".
>
> Even those little animated lines in flash eat about 50% of a 200-300 mhz
PC
> processors power, which represents about 40% of the current installed
base.
> Start stacking windows and the back (not even a focal point in the eyes of
> the user) is raising havok with the animation quality on newly opened
> windows.  Then on closing of  secondary windows you can send base window
to
> a "start" frame to fire the animation up again.
>
> You can extend this trick by creating all sorts of in page animation
> switches.  If "b" animation is started, turn off "a,c" animations, if
"a,c"
> stopped, turn on "b" animation.  You can also allow the user to
dynamically
> turn off animations if they become a problem on slower processors with a
> animation control panel.
>
> Just some thoughts.
>
> Ray
>
> ----- Original Message -----
> From: "Darryl Cousins" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 11, 2001 2:25 PM
> Subject: RE: [Dynapi-Help] window.open and IE
>
>
> > Thanks Robert for the reply.
> >
> > On the two 'guilty' links I was loading html pages with plenty of
DynAPI2
> > script. I assume that it is a memory problem with IE. It gets itself
tied
> up
> > with the DynAPI in the opened windows and when they're closed again it
> takes
> > those several seconds to free up the memory again. On all my pages I
> > include:
> > DynAPI.onUnload = function() {
> > if (this.loaded) DynAPI.document.deleteAllChildren();
> > }
> > This, I find makes a big difference in general. A day or so I read in
the
> > dev-list about CollectGarbage(). So just for a try I incuded:
> > DynAPI.onUnload = function() {
> > if (this.loaded) DynAPI.document.deleteAllChildren();
> > CollectGarbage();
> > }
> > in the two 'guilty' pages. Now I have no problems :) One less, that is.
> >
> > Blessings, Darryl.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert
> > Rainwater
> > Sent: Sunday, March 11, 2001 8:07 PM
> > To: Darryl Cousins
> > Subject: Re: [Dynapi-Help] window.open and IE
> >
> >
> >
> > I tried and didn't have that problem with adding some simple dynlayers
> > to the window. What exactly are you loading in the windows?
> >
> > --
> > Robert Rainwater
> >
> >
> > On 3/10/2001, 5:34:08 AM EST, Darryl wrote about "[Dynapi-Help]
> window.open
> > and IE":
> >
> > > Hello All,
> >
> > > I have a home page with several <a> links (on layers using setHTML)
that
> > > call the following function:
> >
> > >  function openWindow(URL,windowName) {
> > >         if(is.ns || is.ie) {
> >
> > >         var window_left = (screen.width-790)/2;
> > >         var window_top = (screen.height-480)/2;
> >
> > >         window.open(URL,windowName,'width=780,height=480,top=' +
> > window_top +
> > > ',left=' + window_left + '');
> > >         }
> > > }
> >
> > > These links open example pages, three without DynAPI2 and two DynAPI2
> > > powered. When the later two, and only the later two, are closed again
my
> > > computer is frozen for 10-15 seconds. The home page browser has focus
> but
> > > click events on the entire system are not active for this short
period.
> > The
> > > problem does not appear with NS. The page worked fine with IE on
another
> > > system (details unknown).
> >
> > > I'm running PentiumII 400 MHz, Win98, IE5.0
> >
> > > The page is at http://www.polbox.com/c/cousins The guilty two links
are
> > > under 'Darryl's Web Design' /Flash 01-2000 and /DHTML 02-2000
> >
> > > TIA. Blessings, Darryl
> >
> >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to