The ideal approach here would be to minify the javascript, if possible, using something like uglify js.