Pass response directly from GitHub Repository

While the demo might use Ajax requests jsFiddle will read them and send using the right MIME type.


It is important to have demo responses prepared for jsFiddle.

Demo directory structure

  • DemoDirectory
    • demo.response.html
    • demo.response.json
    • demo.response.xml

Run in jsFiddle

URL: /gh/get/response.{extension}/{github_tree}/ where:

the path to the directory used to display it on github page (without “”)
the file extension of the demo.response.{extension} in github demo repository


There is no JSONP functionality provided. One may achieve it using raw GitHub URL.


Content of the will be returned with text/html MIME type if this url will be loaded using Ajax request.

Here it is working within the jsFiddle

Table Of Contents

Previous topic

Display Fiddle from Gist

Next topic

Pass response directly from Gist

This Page