I don’t think that passing variables through the src attribute is possible out of the box without any additional code on your part (there is an article here if you are interested!). You could do the following, although you must provide the same functionality that you are looking for:
Define the "config" variables in one script block on the HTML page:
<script type="text/javascript"> var config1 = true; </script>
Link to external external JS file in the second block of the script:
<script src="/scripts/myJavascriptFile.js" type="text/javascript"></script>
Add this code to your external JS file to reference the "local" variable in your HTML:
var conf1 = window.config1; if (conf1) {
source share