Here's a page of mine that's almost 20 years old.[1] Look at the page source. That's HTML in its pure form. No styling at all. Looking at the page source for the "fastest blog", there's still far more formatting info than content. Much of that bloat isn't doing anything. [1] http://www.animats.com/papers/leggedrun/leggedrun.html
HTML in its pure form doesn't render well on current mobile devices. It's idiotic that you are punished when you use HTML like it was supposed to be used but that's unfortunately how the mobile browsers work currently.
The Fastest Blog in the World
101–110 of 130 posts
Re: The Fastest Blog in the World
#102Surely you're throwing away some of the speed benefits of parallel requests by massively-inlining everything? I'd be interested in seeing some waterfall charts comparing this setup with something that keeps the number of total requests small (say 3-5 requests) and evenly balanced. Particularly as we move toward HTTP2, having lots of small parallel requests will be a more effective way of getting raw page load perform…
I expected that to be the case but repeated measurements tell me that it is in fact the opposite. The difference was about 50% faster on the version with everything inlined. Counter-intuitive for sure! For instance, just taking the CSS out and loading that separately doubled the page rendering time (because another resource had to be loaded after the first one). Now it is just like a 'declare before use' program in a…
Did you verify that the cache headers where correct, and that the CSS file was only loaded once? It's certainly possible, but indeed surprising (to me) if the actual overhead of parsing the html (and then the css - 2x render time) is that big?
[ed: Did you see the same pattern using local static files?]
Re: The Fastest Blog in the World
#103Many of my posts use images and I use Google Analytics so I made a text only one and disabled GA to see how it compares. With your trick of the inline stylesheet I got a massive speed improvement[0], down from about 100ms to between 60-70ms.
I too use Hugo. I host the site on a $10 VPS from digital ocean located in London, but I also use Cloudflare to speed up image delivery.
I'm not sure where your site is physically hosted but testing from Amsterdam we're pretty much the same given the 1KB page size difference.
Very cool post and thanks for the tips!
[0] http://tools.pingdom.com/fpt/#!/bvkhPp/http://josharcher.uk/...
Re: The Fastest Blog in the World
#104Earlier quoted context omitted.
It should be, but measurements bear out that it isn't...
Speed isn't everything to me. I love the fact that for example view-source: http://natalian.org/2015/07/06/Bank_secrecy_in_Singapore/ is more readable than most blogs.
The first Java version of an internal app we had converted from Progress 4GL used Java Webstart to dynamically load & launch, and because of programmer laziness (and the 93 3rd party Java components they'd included) it literally took 3 minutes to launch. That was the point where the manager -- who was a better programmer than anyone in the team, but who had previously been hands-off -- stepped in and created some rules and instituted code reviews. Still, though, totally insane behavior by so many young web programmers.
Re: The Fastest Blog in the World
#105Earlier quoted context omitted.
I expected that to be the case but repeated measurements tell me that it is in fact the opposite. The difference was about 50% faster on the version with everything inlined. Counter-intuitive for sure! For instance, just taking the CSS out and loading that separately doubled the page rendering time (because another resource had to be loaded after the first one). Now it is just like a 'declare before use' program in a…
> Even more counter-intuitive: this holds even when loading multiple pages on the same site that share the same (small) CSS file. Did you verify that the cache headers where correct, and that the CSS file was only loaded once? It's certainly possible, but indeed surprising (to me) if the actual overhead of parsing the html (and then the css - 2x render time) is that big? [ed: Did you see the same pattern using local…
The configuration line reads:
ExpiresByType text/css "access plus 1 week"
And I verified that it worked using a commandline http tool as well as the firefox developer tools (network section), on the second view it only loaded the page and not the CSS.Re: The Fastest Blog in the World
#106I really enjoy trying to make things as bloat free as possible but also retaining some styling, unlike motherfuckingwebsite.com. Many of my posts use images and I use Google Analytics so I made a text only one and disabled GA to see how it compares. With your trick of the inline stylesheet I got a massive speed improvement[0], down from about 100ms to between 60-70ms. I too use Hugo. I host the site on a $10 VPS from…
Re: The Fastest Blog in the World
#107Mine is faster :) https://github.com/kaihendry/natalian X1C3:~$ httping http://natalian.org PING natalian.org:80 (/): connected to 54.192.159.125:80 (147 bytes), seq=0 time= 91.36 ms connected to 54.192.159.123:80 (147 bytes), seq=1 time= 28.63 ms ^CGot signal 2 --- http://natalian.org/ ping statistics --- 2 connects, 2 ok, 0.00% failed, time 1394ms round-trip min/avg/max = 28.6/60.0/91.4 ms X1C3:~$ httping http://ja…
Mine is even faster than you. PING gotchacode.com:80 (/): connected to 104.28.19.6:80 (651 bytes), seq=0 time=540.86 ms ^CGot signal 2 --- http://gotchacode.com/ ping statistics --- 1 connects, 1 ok, 0.00% failed, time 1259ms round-trip min/avg/max = 540.9/540.9/540.9 ms
But not as bad as most, so there's hope :)
Re: The Fastest Blog in the World
#108Earlier quoted context omitted.
The google homepage doing a lot more was pointed out earlier, I've updated the page to reflect that. > If Jacques blog gets a significant amount more traffic by loading super fast then that's a definite, measurable success. If the only change is that it loads faster, and he doesn't grow his audience, then he hasn't really achieved anything. If audience growth were the target, then yes that's true. But what matters to…
"On top of that I suspect (but can't prove) that a faster site will lead to people viewing more pages on that same site simply because of the convenience." I'm reasonably sure that this theory is backed up by data. I don't have the time to look up the studies just now, but as someone with a professional interest in this, I'm pretty sure I've seen them in the past. Certainly, page speed has a surprisingly large impact…
Re: The Fastest Blog in the World
#109Earlier quoted context omitted.
The google homepage doing a lot more was pointed out earlier, I've updated the page to reflect that. > If Jacques blog gets a significant amount more traffic by loading super fast then that's a definite, measurable success. If the only change is that it loads faster, and he doesn't grow his audience, then he hasn't really achieved anything. If audience growth were the target, then yes that's true. But what matters to…
"On top of that I suspect (but can't prove) that a faster site will lead to people viewing more pages on that same site simply because of the convenience." I'm reasonably sure that this theory is backed up by data. I don't have the time to look up the studies just now, but as someone with a professional interest in this, I'm pretty sure I've seen them in the past. Certainly, page speed has a surprisingly large impact…
it assumes that anything under 400ms response can add to the addictiveness of a user interface.
Re: The Fastest Blog in the World
#110This is absolutely brilliant if the only metric your audience cares about is page load time . For most sites that's only part of the story. Take the first paragraph, about how Google's homepage of just a textbox should really be a few hundred bytes instead of a megabyte. Google's homepage does a lot more than just enabling you to enter a search - there's the autosuggest feature, there's analytics, the apps tray, G+ i…
While I agree with your comment about Google, I disagree with this one: > If the only change is that it loads faster, and he doesn't grow his audience, then he hasn't really achieved anything. If this makes his readers happier, it is a success nonetheless. Maybe this is a startup/HN thing that everything must grow and grow. But that isn't the only successful strategy, even from a purely economic point of view. If you…