I'm adapting a theme (Bootstrap) with MeteorJS but the theme has more than 15 plugins (jQuery), I can not just put them in the /client
folder and load all at the same time, some things (some in despair):
Put the scripts in the template footer with tag <script>
, but were not loaded or when the template was reload , whether they lost or not carry
Using link the load is asynchronous, in this case not feasible, I'm loading dependent libraries between each other .
Using link I have the same problem of item 2, I even managed to make them depend on each other using callbacks however it is so horrendous that I refused to post the code.
EDIT
When you first load the application several "Undefined is not a function" go to console
, but when the reload is done, it works perfectly because library
has already been loaded. I also used mrt:preloader
but it did not work.
What I need is to load a list of scripts in a synchronous order.