Re: Ymap causing browser to hang on exit
- View SourceSo a little more research has now established that the problem seems
to be only present in v3.0 of the maps... take a look at this version
of the same demo application -
http://www.unistardesign.com/map/manymarkers_v2.php - it uses the
same process to display the markers - however it does not suffer from
the slow response problem on refresh - and also seems to render the
markers faster in the first place... could it be that some unexpected
overhead was introduced in v3.0 ???
thoughts anyone ?
--- In email@example.com, "adrianbird" <abird@...> wrote:
> http://www.unistardesign.com/map/manymarkers.php is a demo page to
> illustrate the behaviour. Click the <Plot Markers> button to add
> markers to the map - then with 200 added there are a couple of
> to look at
> 1) if you "refresh" the screen, IE pauses for 10+ seconds before
> refresh executes... (if you refresh with no markers in the map the
> refresh occurs immediately
> 2) if you display 200 markers, then replot 200 more markers (the
> pages calls map.removeAllMarkers() prior to redisplay) there is a
> noticeable pause prior to each redisplay.. it is very slow and
> similar slow in time to the behaviour in #1 above.
> -- in addition this demo file also illustrates another problem that
> starts to show up - which is after about 3 cycles of displaying
> markers and removing them I start to get Interner Explorer warnings
> a "slow script" (which means that we are hitting the max number of
> statements for a page)
> Note: I have used setTimeout() to help speed up the display process
> (and that seems to work) however the behavior of slow browser
> response following a large number of markers is consistent whether
> there setTimeout is used.. or not.
> --- In firstname.lastname@example.org, Vince Maniago <uvince@> wrote:
> > Link?
> > ----- Original Message ----
> > From: adrianbird <abird@>
> > To: email@example.com
> > Sent: Tuesday, August 1, 2006 2:11:43 PM
> > Subject: [yws-maps] Re: Ymap causing browser to hang on exit
> > Hi Mark,
> > FWIW I am seeing the same thing, and also see the same behaviour
> > try to reload the markers as I drag the map around.... looks like
> > will be trying the GeoRSS approach to see if that way of
> > markers somehow gets rid of the overhead... did you have any luck
> > with yours ?
> > adrian
> > --- In yws-maps@yahoogroup s.com, merritt mark
> > wrote:
> > >
> > > I am having a problem with ymap causing the browser to
> > > hang on exit of the page. The browser hangs for a
> > > little over 60 seconds and then I get the following
> > > message: "A script on this page is causing Internet
> > > Explorer to run slowly. If it continues to run, your
> > > computer may become unresponsive. Do you want to
> > > abort the script?" After aborting the browser begins
> > > to function properly.
> > >
> > > I am using AJAX. I am loading about 430 locations
> > > with addMarker. The map loads a little slow, but it
> > > works OK until I attempt to exit the web page. then
> > > the browser hangs.
> > >
> > > Any ideas as to what might be causing the problem?
> > > Mark
> > >
> > > ____________ _________ _________ _________ _________ __
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail. yahoo.com
> > >
> > [Non-text portions of this message have been removed]