This is my first time actually using Meteor, I am trying to load JS files using the Meteor Framework and I have come to a complication where I want to do the following:
<script type="text/javascript">
document.write('<script src=' +
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
'.js><\/script>')
</script>
I want to load specific JS files based on certain conditions.
I understand that Meteor has a way of loading JS files where they would load deepest first, then alphabetically. Obviously if I put the scripts in the client folder then it would load both js files anyway without a care in the world. What would be the best way to load the files dynamically as the code above?
Thanks