2

I've had someone submit a pull request for a Javascript library I've got hosted on Github. I'd like to test it in jsfiddle, but I'd like to keep my fiddle script window clean by NOT Copy/Pasting the entire library.

Is there a way to link to the file hosted on Github, and have it served as Application/Javascript?

Basically I want to wire up a very simple fiddle, and add the file hosted on Github as a resource under the "Add Resources" tab.

2
  • rough day... I'm struggling with writing an appropriate title for this question... Commented Oct 23, 2012 at 22:58
  • jsfiddle has a "Add Resources" section. Just put the URL to the raw file there or include a script tag in the HTML section. Commented Oct 23, 2012 at 22:58

1 Answer 1

2

First, the "raw" URL of the file on GitHub. To get this, click on the file you want, then click the "Raw" button.

Then, on jsFiddle on the left, click "Add Resources". Paste the URL in the box and, click the plus sign.

Now jsFiddle will use your JS file from GitHub.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.