Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Events sent by the server are not updated on the web page

Completed

Comments

1 comment

  • Ichiro
    • Network Optix team

    Hi Alicia Peralta Linares,

    Qt WebEngine and embedded Chromium do not fully match standard desktop browser behavior, especially for meta refresh or header-based automatic reloads. This is a known and documented characteristic of embedded Chromium environments, not a configuration error or implementation mistake.

    In embedded Chromium / Qt WebEngine, the following differences are expected by design:

    • JavaScript timers may be throttled when the page is considered background or inactive
    • meta http-equiv="refresh" may be ignored or disabled by policy
    • Automatic reloads can be restricted for performance and security reasons

    Because of these platform-level constraints, relying on browser-managed refresh mechanisms cannot guarantee consistent behavior across environments. That said, certain trade-offs are inherent and must be handled and respected explicitly at the application level, in this case, QT WebEngine has this trade-off.  
     

    As a result, the recommended (and maybe simplest solution)  across standard browsers, Qt WebEngine, and embedded Chromium —  “Use explicit JavaScript reload logic (instead of relying on browser behavior.)”  This approach avoids browser policy differences and provides predictable behavior in all supported environments.

    Maybe you can have a setTimeout, if you need consistent behavior across browsers, including standard browser and embedded Chromium:

    setTimeout(() => {
        window.location.href = window.location.href;
    }, 10000);

     

    Thanks.

     

     

     

    0

Please sign in to leave a comment.