None of this is due to "modern web development". It's just about a dev not checking reasonable asset size before deploying/compiling, that has happened in web, game-dev, desktop apps, server containers, etc. etc.
This should be an SVG (a few kb after proper compression) or if properly made as a PNG it'd probably be in 20-ish kb.