I want to call the function on load as well as on resize.
Is there a better way to rewrite this more compactly?
$(\'.content .right\').width($(window
Simple way:
html: javascript: $(window).resize(function () { ... });