Live data from Hacker News

Why is the Internet so Slow?

blog.apnic.net

161–164 of 164 posts

Re: Why is the Internet so Slow?

#161

Earlier quoted context omitted.

As much as ads are annoying, this has nothing to do with the article. One man's bloat is another man's content. No need for this nag to be top comment on HN for an article about why data isn't moving at the speed of light.

It's not ads! Jquery.com, bootstrapcdn.com, cloudfare.com, cloudfront.net, google-analytics.com, fontawesome.com, Wordpress, Twitter, Facebook, Pocket, rating-widget.com, and typography.com are all used to put the content on this website, and none of them are ads.

I work for a company that produces a URL filter and in our experience ads and all tracking javascript is 30+% of all URLs.

The code in tracking scripts varies between "short and elegant" to "massive and slow code". There is also a piece of json where the tracker thinks it is necessary to call 10 other trackers: See for example http://ib.adnxs.com/async_usersync?cbfn=AN_async_load : AN_async_load([ {"url":"http://cm.g.doubleclick.net/pixel?google_nid=appnexus&google..., "tagtype":"img"}, {"url":"https://ib.adnxs.com/getuid?https%3A%2F%2Fcm.g.doubleclick.n..., "tagtype":"img"}, {"url":"http://c.bing.com/c.gif?anx_uid=xxxx&Red3=MSAN_pd", "tagtype":"iframe"}, {"url":"http://odr.mookie1.com/t/v2/sync?tagid=V2_4265&src.visitorId..., "tagtype":"img"}, {"url":"http://match.adsrvr.org/track/cmf/generic?ttd_pid=appnexus&t..., "tagtype":"img"}, {"url":"http://pixel.rubiconproject.com/tap.php?v=4894&nid=1986&put=..., "tagtype":"img"}, {"url":"http://sync.mathtag.com/sync/img?mt_exid=13&mt_exuid=xxxx&re..., "tagtype":"img"} , {"url":"http://p.rfihub.com/cm?in=1&pub=345&userid=xxxx", "tagtype":"img"}, {"url":"http://t.mookie1.com/rsp?dnv=[TIMESTAMP]&rurl=//ib.adnxs.com..., "tagtype":"img"}, {"url":"http://t.wayfair.com/a/vendor_sync/user?vendor_id=1&uid=xxxx..., "tagtype":"img"} ]);

The slowness that we experience is from delays caused by calling scripts that call scripts that call scripts, processing large pieces of javascript and network latencies. edit: and server latencies.

Re: Why is the Internet so Slow?

#162
post #133

Earlier quoted context omitted.

You can use lossy PNG compression (palletizing) since it's 'just' a graph. There are seven different colors in it that all alias to white. Convert it to a 32 color 8-bit version and it looks identical. Then use ImageOptim (or like) to compress it down to less than 16 KiB.

Neat, it's 12kB now: convert -colors 16 Ilker_fast.png Ilker_tiny.png pngcrush Ilker_tiny.png Ilker_out.png Total page weight is now 15kB, 0.2% the size of the original page. Incidentally, that ratio is about the same as the ratio between the original page and the entirety of the game Overwatch.

You can shave 1kB off that png with

advpng -4 -z -i 15

http://www.advancemame.it/doc-advpng.html

Re: Why is the Internet so Slow?

#163

If the 3x slowdown from the infrastructure were eliminated, each round-trip-time being 3x faster would affect all the protocols above, and we could immediately cut the latency inflation from ~37x to around 10x, without any protocol modifications. The page this article is published on makes 87 separate network requests to 19 different domains. Even with a great deal of the content cached, it takes 7 seconds to reload…

This is irrelevant and a completely different problem.

Re: Why is the Internet so Slow?

#164

Tangentially, I have been struggling, for several years, with Safari being extremely slow at opening sites, compared to almost instant loading in Chrome. Anyone seen this? I'm always on fast networks (100mbps or so), but I find myself waiting 4-5 seconds or more before Safari even shows signs of connecting, even to things like Google and YouTube. It seems to be limited to HTTPS sites, and seems to have been introduce…

I've used Safari since the very beginning, and I haven't really noticed this, no. Extensions, perhaps?
Post reply on HN