I created three widgets that are added to YUI as modules. All widgets use the same javascript library (commons.js) using the Y.Get.js method. These widgets are defined in separate js files (I need to do it so that these widgets are standalone). All of them are loaded into an HTML file and rendered. However, by inspecting the elements of the HTML file in browser, it turns out that the commons.js file is included for three times in the HTML file, but with different IDs:
<script charset="utf-8" id="yui_3_5_0_1_1374466627361_24" src="js/common.js"></script>
<script charset="utf-8" id="yui_3_5_0_1_1374466627361_32" src="js/common.js"></script>
<script charset="utf-8" id="yui_3_5_0_1_1374466627361_38" src="js/common.js"></script>
Is there a way in YUI to avoid this duplication? Thank you!