Third Party Libraries - dan7davis/Lambda GitHub Wiki

Including Third Party Libraries in edX Verticals

For some reason, standard approaches for including third party libraries tend not to work in edX.

The solution I found to work best has three steps:

  1. Grab entire text contents of the library .js file and save it locally as a .js.

  2. Upload that file to the "Files & Uploads" page in the edX course.

  3. Link the script to that file with an HTML tag.

Example

This is what the setup looks like in action:

textpage

edxpage

And then reference it in a RAW HTML component with

<script src="/static/pbref.js"></script>
⚠️ **GitHub.com Fallback** ⚠️