Xertonline.com website performance is bad sometimes

The xertonline.com dashboard wouldn’t load sometimes. I would say it happens probably 2-4 times a week. For additional context, I am from Malaysia.

This is a screenshot of me trying to run a Lighthouse audit on a Brave browser (Chromium based browser) with a few browser extensions installed (I don’t believe the extensions have anything to do with this).

This is a screenshot of the network tab trying to load the JavaScript assets. All of them are pending.

After some time, they returned a (failed) net::ERR_HTTP2_PROTOCOL_ERROR.

I have the same issue in Zen browser (Firefox based browser).

I pointed an LLM to the dashboard and found out that:

  1. Route to 96.126.104.93 (Xert server, Linode via Hurricane Electric) loses 40-60% of packets
    mtr -r -c 5 96.126.104.93
    5.|-- 10.55.209.61 0.0% 20 ms (your ISP)
    6.|-- 184.104.188.105 20.0% 149 ms (Hurricane Electric)
    7.|-- 184.104.188.104 80.0% 205 ms
    13.|-- 184.104.193.141 60.0% 275 ms
    20.|-- 96.126.104.93 0.0% 280 ms RTT 269-277 ms

    ping -c 10 96.126.104.93 -> 50% packet loss
    ping -c 10 1.1.1.1 -> 0% packet loss, 22 ms
    ping -c 10 8.8.8.8 -> 0% packet loss, 8 ms
    curl 20 KB core.js -> 4.2-8.4 s, 2.4-4.8 KB/s
    curl svelte.js (256 KB) -> died at 60 s timer, 4.3 KB/s

  2. I’m not sure if this is how the site is implemented but LLM says there’s a race condition happening when core.js is loaded too late.

    When core.js finally arrives late, the inline script Xert._userId = ... already threw. Same for sessions. No Xert, no sessions, WorkoutsDash never mounts, load event never fires. Page stays blank forever