Picture of Simon Date
Re: Loading external JS libraries
by Simon Date - Monday, 23 January 2017, 1:58 PM
 

Hi Matt,

Thanks for the fast response!

I've tried to use the .done() function but since it is applied at a higher level scope I can't seem to use it for anything useful as it doesn't seem to be in the right scope. The only thing that returns anything is console.log(window); Is there a way to bind it to the functions in the component level?

Simon

Picture of Matt Leathes
Re: Loading external JS libraries
by Matt Leathes - Monday, 23 January 2017, 3:06 PM
 

Have you tried just doing $.getScript(script); instead of $("head").append('<script>$.getScript("' + script + '");