$.get('test.html', function(r) {
window.document.body.className += " done";
});
But: This is not about short code. It's about readability. What's readyState 4? Why "open" a request before sending it? $.get('test.html', function(r) {
window.document.body.className += " done";
});
But: This is not about short code. It's about readability. What's readyState 4? Why "open" a request before sending it?