views:

401

answers:

1

We are using Bing and/or Google javascript map controls, sometimes with large numbers of dynamically alterable overlays.

I have read http://support.microsoft.com/kb/175500/en-us and know how to set the MaxScriptStatments registry key.

Problem is we do not want to programmatically set this or any other registry key on users' computers but would rather achieve the same effect some other way.

Is there another way?

+1  A: 

Hardly anything you can do besides making your script "lighter". Try to profile it and figure out where the heaviest crunching takes place, then try to optimize those parts, break them down into smaller components, call the next component with a timeout after the previous one has finished and so on. Basically, give the control back to the browser every once in a while, don't crunch everything in one function call.

deceze