All scripts run from FileMaker WebDirect are run by FileMaker Server. So, using PSoS in your WebDirect solution does not make any difference from ordinary FileMaker Scripts.
I this case I would use different layout and therefore different scripts for the function you need. I would also try to avoid using triggers (if that is possible) because that is one of the biggest performance thief you have in WebDirect.
using PSoS in your WebDirect solution does not make any difference from ordinary FileMaker Scripts.
Not really true. In Web Direct, running with PSOS generates a "Wait" dialog. Using If (Get(SystemPlatform) = 4) does the same. Running the ordinary script does not.
My question is not really about layouts or triggers. It is about script performance in Web Direct and the Wait dialog when certain script steps are present. Not a comparison to behavior in Pro or another platform.
Do you have some specific script steps that you have problems with?
Perform Script on Server
If (Get(SystemPlatform) = 4)
I did some testing and the If (Get(SystemPlatform) = 4) takes 30ms to evaluate in web direct. PSOS is anywhere from 15 to 65ms more than the same script without PSOS.
I guess this is long enough to cause the dialog to pop up.
Strange how much difference there is on the PSoS.
Think you on to something here. Time is probably the reason you see the dialog
Maybe, but 15ms is nothing. I though the time limit for the dialog was somewhere around 200ms.
Would be nice to have some facts on that. I have never tested to see what time is needed for a dialog. 200 ms is still almost nothing, but as you wrote 15 ms is nothing.