I created a gist on GitHub with some javascript on it and typed this code to add it to my HTML page.
<script src="https://gist.github.com/Ptolemy2002/7ad9e685da3c80750363347c70529b86#file-artist-js"></script>
When I previewed my page, I found this error on the console:
Refused to execute script from 'https://gist.github.com/Ptolemy2002/7ad9e685da3c80750363347c70529b86#file-artist-js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
I made sure that the gist was public and disabled all cookie blocking. My full workspace is here:
https://ide.c9.io/ptolemy2002/canvas-library
(look inside of “Editor.html”)