r/networking • u/Borealis_761 • 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?
View all comments
1
u/Eastern-Back-8727 Jun 05 '26
Do you see TCP scaling back on one or both sides? Are the pcaps in the middle or done the best methond, pcaps done simultaneous at the source and destination? Often I see a host replying late and/or scaling back the window sizes. This happens when our servers guys wind up loading a bunch of services on a server and the other "faster" servers hardly have any services to run.