I'm hoping to speed up my LS by reducing the duplicate js requests. Through a little experimentation I have discovered that common_functions.php has a section that does not appear to be necessary and when commented out, it reduces the js requests in half. In other words, when it is included, LS doubles the js requests.
Can anyone confirm or deny whether this section is required?
In my limited testing with the following commented out, the site appears to render without any issues and was about 20% faster per Firebug net.
//foreach ($js_header_includes as $jsinclude)
//{
// if (substr($jsinclude,0,4) == 'http')
// $js_header .= "<script type=\"text/javascript\" src=\"$jsinclude\"></script>\n";
// else
// $js_header .= "<script type=\"text/javascript\" src=\"".$rooturl."$jsinclude\"></script>\n";
//}
//foreach ($css_header_includes as $cssinclude)
//{
// $css_header .= "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"".$rooturl.$cssinclude."\" />\n";
//}
Thanks!