concrete5/concrete5 — pull request #449 by 12345j (2012-02-22 05:44:14+00:00)
Title: Load only the js file with the greatest version if more than 2 of the same are being requested.

as per http://www.concrete5.org/index.php?cID=283752
first attempt. still a bit tacky.
example
$html->javascript($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.pack.js',false,array('handle'=>'fancybox','version'=>'1.3.1','footer'=>0));
you don't need the addheaderitem/addfooteritem because the footer variable decides it.