AnsweredAssumed Answered

Problem loading external libraries in surf pages

Question asked by aalvarezfern on Jan 12, 2018
Latest reply on Jan 15, 2018 by aalvarezfern

Hello, Im new to alfresco5 and i m building some surf pages where i need to use some external libraries  on them (i.e.  dragula , datatables,etc)

 To load those libraries (not even try to use them) i use this directive in the html.ftl :


<@markup id="js">
<@script type="text/javascript" src="${page.url.context}/res/components/js/dragula.js"></@script>

dragula loading error

Well, it seems its not the proper way to load them since i get multipledefine errors browser 

I know the problem has to do with dojo, but i dont know exactly how make dojo load external libraries.

It s extrange since some custom javascripsi have made are loaded ok. 


Does any one know how to proper load  external javascripts avoiding dojo colisions?