NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Keith on September 30, 2014, 12:42:58 AM

Title: ProcessLink procedures executing many times
Post by: Keith on September 30, 2014, 12:42:58 AM
Hi

While debugging a problem I have noted that the ProcessLink Procedure executes many times after actions in the browser.   Specifically:

Execute URL 15x
Select Menu Item 2x
Enter a field 1x
Push a button 2x

Is this ok and you just live with it even though you may have a lot of code executed here?

Thanks

Keith
Title: Re: ProcessLink procedures executing many times
Post by: Bruce on September 30, 2014, 01:09:15 AM
ProcessLink is executed once for every request that comes from the browser.

Ideally you should only have code in there which is necessary for "all threads". You should also try and keep it "fast" (ie no disk access).

You're seeing it "15x" for a static URL because the URL contains links to embedded JavaScript or CSS or Images and so on. If you look in the log you'll see 15 requests for your "single URL".

Aside: This number reduces a lot when you combine javascript and css etc...

cheers
Bruce