mostlylucid

scott galloway's personal blog...
posts - 916, comments - 758, trackbacks - 11

My Links

News

Archives

Post Categories

Misc. Coding

Friday, July 09, 2010

Of the beginning…


So, I'm not dead! Have been busy moving house, getting two new kittens (Tycho and Cozmo) and bascially settling into my new existence.

 

I HAVE also been getting back down to some serious coding. LOVING RavenDB (I seriously think it is THE .NET database of choice now), getting deep an dirty with some awesome HTTP optimization techniques...which I really do have to blog about soon!

My first pointers to HTTP optimization greateness are:

Chirpy: a brilliant little VS add-in (check the Codeplex page for the VS 2010 version) , compresses and combines your CSS and JS files as well as lets you use .less syntax easily inside VS (kinda a programmatic extension to CSS allowing for cleaner, less repetitive style definitions).

LabJS: a bit more complex but really stunning little bit of JS which lets you seriously optimize your JS loading...JS becomes non-blocking and all loads asynchronously (see http://labjs.com/description.php for more details)! Here's how I use this in one of the cozwecan sites (note, I also use LabJS to do a 'load from CDN with fallback' behavior which I have yet to see fully documented) ...

var scriptModifier = "";


$LAB
.setGlobalDefaults({ AllowDuplicates: false });
$LAB
   .script({ src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",
       alt: "/Scripts/jquery.1.4.2.min.js",
       test: "jQuery"
   }).wait()
     .script({ src: "http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js",
         alt: "/Scripts/jquery.validate.min.js",
         test: "jQuery.validate"
     })
     .script("/Scripts/jquery.ba-bbq.min.js")
     .script({ src: "http://cdn.jquerytools.org/1.1.2/tiny/jquery.tools.min.js",
         alt: "/Scripts/jquery.tools.min.js",
         test: "jQuery.tools"
     })
    
    .script("/Scripts/jquery.easing.1.3.min.js")
    .script("/Scripts/jquery.jnotifica.min.js")

    .script("/Scripts/Custom/MainScripts" + scriptModifier + ".js")
    .wait(function () { SetupInitialLoad(); });

 

 

Anyway will get a blog post together eventually covering all that I've been up to...until then...follow me on Twitter @scottgal..late peeps!

posted @ Friday, July 09, 2010 6:30 AM | Feedback (1) |

Powered by: