I hope you can help me. I have a problem with Javascript running slow in an ASP page.
I inherited this program from a programmer who is no longer employed by the company. One of my first assignments is to speed up the program. Upon checking one of the slow pages I found that it was taking over 15 seconds to open a specific page.
While trying to find the problem I discovered that if I inserted a “response.write” just before the Javascript. “window.open”, the “response.write” would execute immediately just as expected.
Next I replaced the “window.open” with an “alert("Hello World!"” and found that it was just as slow as the “window.open”.
This shows me that for some reason the Javascript is running slow.
We have other programs that utilize Javescript without any problems so I doubt that it is directly related to the server.
Any ideas why?
I inherited this program from a programmer who is no longer employed by the company. One of my first assignments is to speed up the program. Upon checking one of the slow pages I found that it was taking over 15 seconds to open a specific page.
While trying to find the problem I discovered that if I inserted a “response.write” just before the Javascript. “window.open”, the “response.write” would execute immediately just as expected.
Next I replaced the “window.open” with an “alert("Hello World!"” and found that it was just as slow as the “window.open”.
This shows me that for some reason the Javascript is running slow.
We have other programs that utilize Javescript without any problems so I doubt that it is directly related to the server.
Any ideas why?