4 ms·
How is JavaScript so far up the list? Slack commits murder on my MBP battery every day.
by tjpnz 8y ago
How is JavaScript so far up the list? Slack commits murder on my MBP battery every day.
- sod 8y agoUsing https://github.com/xtermjs/xterm.js https://github.com/xtermjs/xterm.js as an example (the terminal used in vscode), they draw on a canvas to achieve better rendering in the browser. So I guess not javascript is the cpu hogging bottleneck, but the complexety of html/css. There are just too many footguns that slows down the rendering. If there only was something like "use strict" for html/css.