News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by joncrane on Tuesday August 04, 2020 @12:18PM (#24051442)
I've recently started using a Firefox extension called uMatrix and all I can say is, install that and start using your normal web pages and you'll very quickly see exactly why web pages take so long to load. The number and size of external assets that get loaded on many websites is literally insane.
Re:In spite of an increase in Internet speed, webpage speeds... by WrtCdEvrydy on Tuesday August 04, 2020 @01:19PM (#24052228)
It's the cascade of doom... we have an internal benchmark without ads, and it's funny to see without ads we load something like 6Mb of JS but if you load the ads, the analytics cascade of hell will load 350Mb of JS to display one picture.
Re:In spite of an increase in Internet speed, webpage speeds... by wackget on Tuesday August 04, 2020 @04:07PM (#24053978)
6MB of JS without ads? What are you loading into the browser, an entire operating system?
Re:In spite of an increase in Internet speed, webpage speeds... by phendrenad2 on Tuesday August 04, 2020 @06:42PM (#24055296)
6MB of JS without ads is unfortunately on the small side these days. Worked for a company that had 15MB of JS, after minification and compression (mostly giant JS libraries that we on the dev team used one small feature of).
Re:In spite of an increase in Internet speed, webpage speeds... by WrtCdEvrydy on Tuesday August 04, 2020 @06:32PM (#24055215)
One whole React webapp.... plus pictures. It really isn't "JS" as much as the whole "resources" reported by Chrome.
Re:In spite of an increase in Internet speed, webpage speeds... by colmvp on Tuesday August 04, 2020 @12:35PM (#24051653)
I've been using uMatrix for ages and it was baffling to me how some websites that are literally just nice looking blogs have an unreal number (i.e. 500+) of external dependencies.
Re:In spite of an increase in Internet speed, webpage speeds... by jandrese on Tuesday August 04, 2020 @01:39PM (#24052465)
I love uMatrix but it can be a serious hassle to get an embedded video to play sometimes. Sometimes I'll allow scripts from the embedding site and suddenly there are dozens or hundreds of new dependencies popping up and not my video. At this point I really have to ask myself if it is worth it. Maybe if I'm lucky its a YouTube video and I can track it down on YouTube's site, but if not it's going to be a big headache and a lot of reloads before the stupid thing plays.
Re:In spite of an increase in Internet speed, webpage speeds... by setr on Tuesday August 04, 2020 @04:29PM (#24054181)
I just got in the habit of turning it off, when I'm either too lazy to bother, or I'm on a site I'll probably never visit again. sites that are already setup ofc generally stay that way.

The big headache is when you have a site half-setup -- its correct for all of your usage, and then you try something new and you get a video that doesn't load, and you sit there waiting until you realize umatrix probably found something new

Re:In spite of an increase in Internet speed, webpage speeds... by zepearl on Tuesday August 04, 2020 @05:13PM (#24054551)
Same problem here (not using uMatrix but something similar being NoScript) => I'm now constantly using 2 browsers, Firefox with NoScript as a base, then temporarily switching to Chrome to access the sites which are demanding in terms of dependencies as you described.
Re:In spite of an increase in Internet speed, webpage speeds... by jmiles90 on Tuesday August 04, 2020 @01:05PM (#24052043)
Re:In spite of an increase in Internet speed, webpage speeds... by f00zz on Tuesday August 04, 2020 @01:24PM (#24052283)
I notice there's an isEven as well. I wonder if they're mutually recursive.
Re:In spite of an increase in Internet speed, webpage speeds... by mr__y on Tuesday August 04, 2020 @01:27PM (#24052320)
there is also is-odd-even which uses both as dependencies, so it appears they're not

https://www.npmjs.com/package/is-odd-or-even

Re:In spite of an increase in Internet speed, webpage speeds... by f00zz on Tuesday August 04, 2020 @01:34PM (#24052420)
The commit history is surprisingly long. The actual test evolved from

  return !!(~~i >> 0 & 1)
to

  return !!(~~i & 1);
to

  const n = Math.abs(value);
  return (n % 2) === 1;
Re:In spite of an increase in Internet speed, webpage speeds... by Orou on Tuesday August 04, 2020 @01:19PM (#24052229)
This is a joke, right?
Re:In spite of an increase in Internet speed, webpage speeds... by mr__y on Tuesday August 04, 2020 @01:24PM (#24052296)
the joke is that is-odd has a dependency - the is-number package
Re:In spite of an increase in Internet speed, webpage speeds... by kolaente on Tuesday August 04, 2020 @05:24PM (#24054648)
Look at how often it was downloaded last week alone: https://www.npmjs.com/package/is-odd

We're all doomed.

Re:In spite of an increase in Internet speed, webpage speeds... by ipnon on Tuesday August 04, 2020 @01:16PM (#24052188)
It's easy to convince atechnical people to adopt uMatrix when you show them that they can watch shows without ads and load pages in less than a second.