The question initially arose from a idea to dynamically load a group of javascript files with $.getScript.
I am developing a js-only front-ends of a couple of projects, which share some libraries, and it would be nice (or at least it seems) to have a one js file which handles common libraries includes, and also the other one - which handles specific libraries.
Some of the front-ends I am talking about will actually work as widgets to the other websites, and until we setup a process of js file compression into one, that is also needed to place a widget as a single js include, and then include all the dependencies in a queue.
Something like: $.getScript .getScript .getScript
So the question has two parts: 1. Would it make sense? 2. If yes, how?
Thanks!