I've had to fix web apps like that, and no, that's not always right and proper. One example I can give is a tool which loaded 50MB of deeply nested JSON, because when it was written 5 years ago, the payload per item was 80% smaller and the company had 0.1% the number of items.
The correct response is to work out who was responsible for maintaining the site for the past five years.
The correct response is to work out who was responsible for maintaining the site for the past five years.