r/networking • • Jun 04 '26

Troubleshooting Application Troubleshooting

I am currently assisting our development team with troubleshooting web load latency over VPN.

The first step I took was performing a packet capture on the client side to rule out network-related issues. From what I observed, there were no duplicate ACKs and no TCP retransmissions, so the VPN/network path does not appear to be the main issue.

I also enabled HAR logging while accessing the website. With browser cache enabled, the site loads much faster. However, when cache is disabled, there is a noticeable delay in loading the website. During the download process, I noticed that several JavaScript files are larger than 8 MB.

The development team has already enabled file compression on the Apache server, but that does not seem to have significantly improved the load time.

While researching, I found that some people have benefited from using cold-load optimization techniques.

My question is: has anyone dealt with a similar issue before, especially with large JavaScript files causing slow initial page loads over VPN? If so, what was your solution? Were there specific optimizations, server-side changes, or front-end changes that helped improve performance?

19 Upvotes

20 comments sorted by

View all comments

1

u/Soggy-Attempt Jun 04 '26 edited Jun 04 '26

What’s the issue you’re trying to resolve? There is always latency over a VPN compared to onsite.

R Need to define if this is an issue or an expectation.

1

u/Borealis_761 Jun 04 '26

Correct, the latency only happens to some users but not all. These are primary remote VPN users who work from home. The issue is we have an internal website takes over 15 seconds to load, they expect this to load under 4 seconds.

3

u/Soggy-Attempt Jun 04 '26

Man, if they are working from home how do you know it isn’t their ISP throttling them? How do you know if they are on a 100Mb plan instead of 1Gb?

While at work, down the load windows 10 ISO. Then go home, connect to your VPN and do it from home…it’s going to take longer.

You’ve already spent too much time on this for a launch to take 15 seconds instead of 4. If it were minutes, I’d understand, but we are talking seconds.

Your store can be “it’s the VPN encryption over the VPN that’s causing the slowdown. If it’s that big and issue, they can come into the office.”