I have upladed 1 file on githut
https://github.com/alpesh-jikadra/Resources/blob/master/js/hello.js
So that I can refer it in my https://jsfiddle.net/6e7vp9p7/6/
,
but as you all know I can not use js uploaded on github as CDN server because I am getting following error.
Refused to execute script from 'https://github.com/alpesh-jikadra/Resources/blob/master/js/hello.js' because its MIME type ('text/html') is not executable, and strict MIME type
So my question is
where should I upload this js file , so that I can refer it in my JsFiddle demo.
Thanks
If you have your own server, you could host the file there. If you create a GitHub project or maybe a Gist, you can use Raw Git.
Just grab the URL for your file in your GitHub project and copy the Prod or Dev link. Raw Git wraps your file in the appropriate headers for AJAX calls.
Update: If you put your project on GitHub, and publish it to npm; you can access it via the jsDelivr CDN.