Sponsored by Best Buy
Geek Squad employee sings for Best Buy in holiday campaign. view!
youtube.com/bestbuy0 - Valerie DeAngelo explains the moment she got the casting call.
53 Comments
- kevinrose, on 10/12/2007, -1/+27Great article - we are on it. thx,
digg++ - Battlecry, on 10/12/2007, -2/+13"This is absolutely ridiculous - the guy who wrote this knows that well, this is just another cheap way of driving traffic to his site."
I disagree. He didn't link to his blog which linked to the original article or anything like that. He did some research and worked out a valid and interesting way to help digg by cleaning up the digg code.
How else is he supposed to get this information out there? Email it individually to everyone? - exoendo, on 10/12/2007, -0/+7There is NOTHING wrong with linking to your own blog if it has original content and other diggers find it of value. No problem at all. The (1) lamer is just jealous.
- KentiVarna, on 06/15/2009, -0/+4"Would've liked it more if they removed all the stuff that didn't need to be in the .js files in the first place before the optimizations and compression."
I took a look at that, but decided since some of the code may not be used on the home page but used in other places in the site it's a better idea to just get all the code at once. This way on subsequent pages there is no more JavaScript to download. Of course this assumes that some sane Expires/Cache-Control headers are set so browsers will be allowed to cache for longer periods of time. - Ballwalker, on 10/12/2007, -0/+2He might also think about further compressing the js with a method similar to what Dean Edwards has here:
http://dean.edwards.name/packer/ - KentiVarna, on 06/15/2009, -0/+2"combining everything into single files doesn't make maintenance impossible"
We do this at deploy/build time only. The files are kept just the way they are in the source tree. It would be a total pain to work with these files after they've been optimized. - JTMON, on 10/12/2007, -0/+1excellent work, the resulting page loads very nicely. And my god, Kevin responded already...just another reason this place rules.
- StuartGibson, on 06/14/2009, -0/+1Assuming a bit of testing results in this keeping the site stable and combining everything into single files doesn't make maintenance impossible, why would this NOT be implemented?
Goblin - windwaker, on 10/12/2007, -0/+1Awesome.
- K.K., on 10/12/2007, -0/+1Very interesting technique. Deserves a dig.
- PsychoticDude85, on 10/12/2007, -0/+1Very nice, should improve the load times massively. +Digg
- inactive, on 10/12/2007, -0/+1Awesome! Finally someone does something about it ;) The load time is just killing me. Glad you're going to impliment it Kevinrose.
Josh - vSanity, on 10/12/2007, -0/+1Dugg. Very nice.
- Huze, on 10/12/2007, -0/+1@ dracula7...
Its not the whitespace optimization. Its the fact that he combined all of the JavaScript and CSS files into a single file. - KentiVarna, on 06/15/2009, -0/+1"it doesnt work in ie."
Yeah certian configs of IE have a bug with gzip content. MS is aware:
http://support.microsoft.com/kb/871205
I didn't mention it in the post, but you'll always want to detect gzip ability. This is trivial.. Just check the Accept header. Didn't handle it in this example but it easy to add. - Battlecry, on 10/12/2007, -0/+0Wow.. That was quick :)
- deepsub, on 10/12/2007, -1/+1Very good article.
digg++ - blueigloo, on 10/12/2007, -0/+0Quite the improvement, but I fail to understand why he *HAD* to mention AJAX in his dsecription. Compression != "AJAX"
- battybattybatt, on 10/12/2007, -0/+0"..it doesnt work in ie.
posted by astral16 (0) at 03:02 ..."
It will if allow the css cookie to load. Its bare bones without letting it load tho. - KillerJ59J, on 10/12/2007, -0/+0Awesome. Hope Digg considers it.
- wyoung, on 10/12/2007, -0/+0Dugg.
Would've liked it more if they removed all the stuff that didn't need to be in the .js files in the first place before the optimizations and compression. - gekkokid, on 10/12/2007, -0/+0great short concise article which not only helps digg but all of us in our day to day projects,
- psychoaliendog, on 10/12/2007, -0/+0and that's just by compressing java-script alone. Toying around with some of the graphics i managed to take at least couple hundred bytes off each.
- CaughtThinking, on 10/12/2007, -0/+0Very nice analysis, professional. The demo app backs up his attention to detail. I hope Digg listens. Digg++
- Singee15, on 10/12/2007, -0/+0This is the beauty of the user-developer conversation
- vermin, on 10/12/2007, -1/+1Yea seriously, this has nothing to do with AJAX...
- Dangerman, on 10/12/2007, -2/+2"Who still uses ie?"
Apparently the majority of web users and some unfortunate souls who are forced to by their schools/work/organization. Don't get me wrong, I hates me some M$, but the fact of the matter is that professional web designers must take into account the user base that is still using it. - The_Ox, on 10/12/2007, -1/+1I'm glad this article got Kevin's official "okie dokey".
Maybe we'll see some optimizations on digg.com soon. :) - jla1987, on 10/12/2007, -0/+0Far superior in load time to the current form of digg.
100% dugg - theone3, on 10/12/2007, -0/+0This is true. Many people just go to digg for their news. They don't even post, digg or anything! Why do you need tagcould css, spellcheck js etc..
- section31, on 10/12/2007, -0/+0Why is this shocking or news to people? I always thought the reason digg didn't crunch, compress, and/or obfuscate their js code was so people like us could look at it and steal it when we want. I'm for this as long as we can have access to the untouched versions of the js code. :)
- inactive, on 10/12/2007, -0/+0very nice. hope they implement this soon
- theone3, on 10/12/2007, -0/+0Wait... They've pre-gzipped it. The digg servers already gzip before transmission anyway, so it's not 65% better!
- battybattybatt, on 10/12/2007, -0/+0"...+digg
Hopefully Kevin will read this article and get digg optimized!
posted by dtrinh (12) at 03:18 PM ..."
He did, his knick is kevinrose - just look up about ten posts. - dracula7, on 10/12/2007, -0/+0how did whitespace optimization reduce the number of http requests?
- Jeffrey903, on 10/12/2007, -0/+0Also, consider the fact that a lot of the JS files aren't used on a lot of the pages. Like who needs the spellcheck JS on the homepage?
- sixseven, on 10/12/2007, -0/+0I must have something set wrong for firefox 1.5
I come to digg with an empty cache it takes
more than a minute to load the page.
In IE it comes up within a few seconds.
digg is the only site the I have this problem.
What is going on the background in firefox?
I look at the cpu status and the system is
idling at 98-99 - pingviini, on 10/12/2007, -0/+0"it doesnt work in ie."
That's an issue? Who still uses ie? I just checked while writing this... it did work in my ie, (yes I keep it around cause some pages are using crappy coding and don't show up well on firefox) Aside from my issues with IE. Why would someone pick to code their site to IE standards instead of html standards thus allowing people that do not have windows be able to view the pages? Also a lot of schools do not use IE due to the security risks (mostly internal risks with schools) I know my old highschool is still using Netscape 4. I'm not saying code just for netscape 4 but follow standards not IE's coding.
posted by sohmageek (2)
Wow, her school uses netscape? My school (sadly) uses IE. But wait, there's more.
The net admin set it up so that we couldn't install firefox to our network drives and run it from there.
How is someone intelligent to block Firefox like that not using firefox?
Luckily, I can still use my Opera installed there. =)
As for the subject, great job.
+1 digg - dtrinh, on 10/12/2007, -0/+0@batty
sorry, didn't see his comment - HitLines, on 10/12/2007, -0/+0"Why do you need tag could css, spellcheck js etc.."
Agree. Those files should not be stored in a header.inc but only on pages that can use it, such as the story page and story submit. You can't spell check anything on the front page so why does the file load? - ketsugi, on 10/12/2007, -0/+0pingviini: I strongly suggest getting a USB thumbdrive and putting PortableFirefox on it... that's what I do and it's great having my personalised browser available to me wherever there's a USB-enabled Windows PC.
- riddlebox, on 10/12/2007, -0/+0That is ***** amazing. Has anyone else noticed though the huge delay in Digg Spy though?
- Dangerman, on 10/12/2007, -2/+1Great now Digg can be totally unaccessible. Not to mention be useless on my phone and PDA. Wow!
Write better server side code and delegate it to languages that are fast at what they are doing, hotfixing with buzzwords == MAD BREAKITUDE.
No Digg. - dtrinh, on 10/12/2007, -1/+0+digg
Hopefully Kevin will read this article and get digg optimized! - oldcyborg, on 10/12/2007, -1/+0Doorway? Ports? Check it out and see`~~
Cyborg
OK - pornel, on 10/12/2007, -2/+0Oh pleeeeease, don't put "2.0 AJAX" label on everything! HTTP compression has nothing to do with it.
- rtilford, on 10/12/2007, -2/+0so it takes a little bit more time to load who cares!
- sohmageek, on 10/12/2007, -2/+0"it doesnt work in ie."
That's an issue? Who still uses ie? I just checked while writing this... it did work in my ie, (yes I keep it around cause some pages are using crappy coding and don't show up well on firefox) Aside from my issues with IE. Why would someone pick to code their site to IE standards instead of html standards thus allowing people that do not have windows be able to view the pages? Also a lot of schools do not use IE due to the security risks (mostly internal risks with schools) I know my old highschool is still using Netscape 4. I'm not saying code just for netscape 4 but follow standards not IE's coding. - inactive, on 10/12/2007, -3/+0holy deja vu .................... "digg: javascript"
http://digg.com/technology/digg:_Javascript_overload_ - windwaker, on 10/12/2007, -3/+0What are you talking about? This is a great article. Don't be a digg elitist (only one article promoted to homepage, I see.).
-
Show 51 - 53 of 53 discussions



What is Digg?