examples:
#PB_Web_Busy:breaks(stays 1) with certain(non-looping) jscript and maybe other stuff.
#PB_Web_StatusMessage:usually "Done"+#PB_Web_Busy=0 or ""+#PB_Web_Busy=0 but affected by jscript issue and localization(language)
You'll either end up in an infinite loop, crashing your app with exceptions, or not process a page correctly depending on how your code is laid out. No solutions seem to be available to date.
The safest thing I've found so far by analyzing a lot of loads in debugger:
Code: Select all
;breaks on slow connections likely, and with certain jscript
Repeat
If WaitWindowEvent(1000)=#PB_Event_Gadget
If EventGadget()=#web
If GetGadgetAttribute(#web,#PB_Web_Busy)=0
thread=CreateThread(@timeout(),5000);delay() inside
While IsThread(thread)
WaitWindowEvent(1000)
Wend
Break
EndIf
EndIf
EndIf
ForEver

