News for hackers. Stuff that matters.
Re:Syntax Highlighting in a Webpage Without JavaScript by Zababa on Thursday March 25, 2021 @07:47AM (#26579042)
> Such a waste of resources (but it's not your resources, so developers don't care).

I've always wondered if it wasn't intentional. Things running on the client means they don't have to run on the server, and you can save money this way.

Re:Syntax Highlighting in a Webpage Without JavaScript by kevincox on Thursday March 25, 2021 @08:59AM (#26579658)
For things like syntax highlighting which is fairly cheap and done "once" I doubt resource usage is a consideration. However I won't be surprised if this is at least a consideration for bigger companies when they decide to make a relatively cheep API or a server-rendered app.