[Pas2js] page reload when server restarted not 100% reliable

Luca Olivetti luca at ventoso.org
Mon Sep 22 17:48:47 CEST 2025


El 22/9/25 a les 17:11, Mattias Gaertner via Pas2js ha escrit:
> 
> 
> On 9/22/25 16:19, Luca Olivetti via Pas2js wrote:
>> I have ~20 clients (windows 11 in kiosk mode with edge as the kiosk 
>> application). They're touch screen only, no keyboard or mouse.
>> The pas2j application tries to reload the page when the connection is 
>> severed (it's using a TJSEventSource and the server sends a message 
>> every 5 seconds).q
>> The problem is that, from time to time, the page is blank (I cannot 
>> simply hit F12 to see what's happening since it's in kiosk mode).
>> On a non-kiosk instance I found that the pas2js application or another 
>> js library wasn't completely loaded while starting the application 
>> hence causing an exception, so I came up with this workaround (and, 
>> yes, first I tried just with the try..catch but it didn't work).
> 
> Wasnt completely loaded. Have you tried in the html:
> 
> window.addEventListener("load", rtl.run);

That's what the checkbox "Run RTL when all page resources are fully 
loaded" does.

I'm not 100% sure but I think I tried. I'll try again though.


Bye
-- 
Luca



More information about the Pas2js mailing list