And how to keep your hair
when working with it
@lukekarrys
JavaScript developer @meltmedia
return !!(window.history && history.pushState);
history.pushState(
{stateData: "newPage"},
"New Page Title",
"newPage.html"
);
window.onpopstate = function() { /* Magic... */ };
Beware of partial support!

$('#content').delegate('a.callout', 'click', fn);
$('.new-el', newContext).yourSpecialJS();
$(function() {
$('p', this).each(function() {
$(this).css('background', 'red');
});
}, true);
// Too easy...
$('a').click(function() {
$('#content).empty().load(this.href + ' #content');
return false;
});
Serve only content that you will display