Search
Other Sourcerer questions
Forum

Loading external js file

Michael Barraclough's Avatar Michael Barraclough
Can I use Sourcerer to load a javascript file that is on another server, eg cdn.datatables.net/2.2.2/js/dataTables.js and if so, what is the format for the code as I am using
<script src="https://cdn.datatables.net/2.2.2/js/dataTables.js" type="text/javascript"></script>
and that is not working.

Thank you.
Peter van Westen's Avatar Peter van Westen ADMIN
Check you html output to see if the <script> tag is there as it should be.
If so, Sourcerer is doing what it should.
Check your browser console to see why the js file is not being loaded. Whatever that reason, is outside the responsibility of Sourcerer.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription