> Along with introducing multi-language support, the JavaScript code also inserts an SVG book icon.
Wait - using JS for dynamic content is understandable, but why using it for inserting a static SVG?
Simple answer is the article is wrong, I tried it with disabled JS and still see the SVG.
The whole article reads like something put together with AI, so maybe it’s not too surprising.
Reducing egress bandwidth, if you have automated clients that don't support JS you save precious bytes from being served by not embedding the SVG, which at example.com scale may be worth it