News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by EE84M3i on Tuesday August 04, 2020 @09:32PM (#24056391)
Something I've noticed is that Dead Code Elimination for Javascript sucks. Yes, there are the (relatively) single "tree shaking" algorithms, but there because of various language issues, it's very hard to mark code as completely unused. Because of this it's extremely common to pull in a library and have a bunch of code that's never used in production!
Re:In spite of an increase in Internet speed, webpage speeds... by SV_BubbleTime on Tuesday August 04, 2020 @09:36PM (#24056419)
Unused code shouldn’t cause a performance issue though, should it? Isn’t this just a matter of downloading it, but never branching into?
Re:In spite of an increase in Internet speed, webpage speeds... by MereInterest on Tuesday August 04, 2020 @10:33PM (#24056717)
Performance on the web is more than just runtime. That time spent downloading the Javascript and parsing it is part of the page's load time, even if the Javascript isn't executed.
Re:In spite of an increase in Internet speed, webpage speeds... by benaadams on Tuesday August 04, 2020 @11:51PM (#24057105)
Need to both download and compile it