In html page, I'm include js
<script src="/script/lib.js?file=bootstrap,jquery"></script>
And in lib.js, I can include like this:
if(file=="jquery"){
$.getScript("//cdn.optimizely.com/js/jquery.js");
}
if(file=="ecomotion"){
$.getScript("//cdn.jsdelivr.net/emojione/1.3.0/lib/js/emojione.min.js");
}
if(file=="bootstrap"){
$.getScript("//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js");
}
ect
How can we do that?