Ah, nice, so a notable open source author of a massively successful frontend library fixes a bug that's obvious to any frontend developer worth their salt.
But this isn't an optimization that I can learn from, really. I mean, unless I made that same mistake in referencing my sprite images, which seems unlikely. Basically, look at firebug and see what all the connections are coming from and fix it.
Maybe I would have appreciated the article better if the title hadn't said "CSS optimization". That made me expect to find some secret to help me make CSS load or render faster. He really fixed a bug in the use of a CSS sprite file.
More interesting: someone finds a way to find other instances of sprite files being used incorrectly on a given domain. But I think Google PageSpeed would identify this for accessing a static file with query string.
If I wanted to read about basic CSS spriting techniques/benefits, I'd go read one of the endless reposts on A List Apart, Smashing Magazine or SitePoint (or one of the hundreds of other sites). I'd throw down solid cash on a bet that the people who come to HN come here because the type of content you'll find here is generally far above that level, and there is absolutely nothing wrong with demanding quality submissions.
We all know John is a great guy and a kickass developer, this doesn't need to be re-stated for the umpteenth time. If you'd like, though, I can happily start submitting every article on basic web design techniques I come across though. Seems like it's right up your alley, no? =)
The difference is that those posts link to content which shows you something interesting. As a consequence, two of them have interesting comments, too (the political one can be excused.) It's hard for me to understand what is interesting about John Resig fixing a relatively boring CSS performance bug, but I guess that's why we all have our own vote button.
I completely agree here. Hacker News has become a reddit cesspool over the last year and the types of posts popular on reddit seem to make it over here. I will leave this community in a year because I am sure the two communities will begin to mimic each other too much.
If it wasn't John Resig who "fixed" the subreddit, then this would be lost in the thousands of pointless posts. I hardly find this something worth of HN.
I think its nice in that its a great example of someone having so much passion for what they do that even something as trivial as this fix is to them worth the time to remedy.
Yeah, because it's not about the fact that it was done on Reddit, it's the fact that this just isn't news to most people here. This is easily one of the most basic web design techniques pushed today, and what he fixed is so espoused in the basics of frontend performance that I'm shocked people consider this news.
John's a great dev and a nice guy who just fixed a subreddit. I don't see it as news if he makes an incredibly basic change to an arbitrary site, though - I follow him on Twitter for this kind of information. ;)
To be fair most of the things I see on the HN front-page are either not news to me or not interesting to me. So going by your logic my question is: Why are so many uninteresting non-news-worthy links on the front-page?
As to your other point about there being other sites out there where you'd go t read about CSS... that same argument can be made for every single link posted here, so my question is: Why are we here?
CSS sprites wasn't the issue anyway. It was an interaction between the way the CSS referenced images and reddit's overzealous optimisations for its CDN turning every reference into a unique one.
Yep. Quite a few use those same rage faces. Reddit really ought to just implement that themselves and let subreddit mods turn it on or off, since they're getting so popular.
Hah, very nice! I'll make sure this gets implemented. I'm sort of kicking myself for not doing it myself, but I just never noticed that images were loaded again on each request...
28 comments
[ 2.9 ms ] story [ 72.1 ms ] threadIt's nice, but news? Really?
However a notable developer hit a problem on a well-known site, diagnosed, proposed and explained a solution, and did it in a friendly, humorous way.
So there are a few lessons there on how hackers can conduct themselves in a positive manner in online communities.
More interesting: someone finds a way to find other instances of sprite files being used incorrectly on a given domain. But I think Google PageSpeed would identify this for accessing a static file with query string.
We all know John is a great guy and a kickass developer, this doesn't need to be re-stated for the umpteenth time. If you'd like, though, I can happily start submitting every article on basic web design techniques I come across though. Seems like it's right up your alley, no? =)
Magical Block Store: Why EBS Can't Work -- http://news.ycombinator.com/item?id=2479613
Russia's Crime of the Century -- http://news.ycombinator.com/item?id=2479865
How many zeros are there in 2^n? -- http://news.ycombinator.com/item?id=2479129
The difference is that those posts link to content which shows you something interesting. As a consequence, two of them have interesting comments, too (the political one can be excused.) It's hard for me to understand what is interesting about John Resig fixing a relatively boring CSS performance bug, but I guess that's why we all have our own vote button.
If it wasn't John Resig who "fixed" the subreddit, then this would be lost in the thousands of pointless posts. I hardly find this something worth of HN.
That's respectable, right?
If he put this in a blog post instead of a Reddit comment, would you still be complaining?
John's a great dev and a nice guy who just fixed a subreddit. I don't see it as news if he makes an incredibly basic change to an arbitrary site, though - I follow him on Twitter for this kind of information. ;)
As to your other point about there being other sites out there where you'd go t read about CSS... that same argument can be made for every single link posted here, so my question is: Why are we here?
Edit: nice, someone fixed the title.
Headline should be: "John Resig's CSS optimization for Reddit's subreddit of fffffffuuuuuuuuuuuu (more than 6x improvement)"
EDIT: Thanks.