News for hackers. Stuff that matters.
Re:Is the web getting slower? by parenthesis on Wednesday September 09, 2020 @05:38AM (#24419158)
It sounds like what is needed is an `optimising compiler' for the entire front end that would spot patterns like those you mention and rewrite them into something better, and that would tree-shake out unused stuff.

Does anything like that exist?

Re:Is the web getting slower? by read_if_gay_ on Wednesday September 09, 2020 @05:43AM (#24419192)
That seems like it's going to work in very specific situations only and/or be extremely hard to implement.
Re:Is the web getting slower? by joquarky on Wednesday September 09, 2020 @09:56AM (#24420998)
I'm curious if Svelte is headed in this direction.
Re:Is the web getting slower? by tjpnz on Wednesday September 09, 2020 @08:31AM (#24420265)
That strikes me as a heavy handed option given the prevalence of linters and performance tools which can already detect some of these issues.