This is very important to know that which part of JavaScript code is taking too much of time.Which are functions are called ,for how many times,each function taking how much time so that
we can optimize your code.
I have doing R & D for almost one or two day
to find how to optimize my JavaScript code,finally we got a tool from
which JavaScript code can be optimized.
There is extension in Firefox called Profiler which gives a detail report that how many functions will be called for a particular event and how many times.
In our case i have tested by clicking on show regions button(just
one click) and the report shows how many functions and which function
is taking too much of time.
The screen shot for the same is shown below
Please revert back with your valuable feedback and suggestions.
Thanks
Kailash