Yeah, I think the server is struggling to cope. Main issue is the company I was working for previously encouraged me to put some of the logic on the backend ("or people will copy-paste the code"). If it wasn't for that, it would all be static content served by nginx.