-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Creation of fiddles via the POST API do not load external resources, scripts when the fiddle is opened.
Steps to Reproduce:
- Create a site with the form for the POST request:
<form method='post' target='check' action='http://jsfiddle.net/api/post/library/pure/'>
<input name='resources' value="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js" />
<input name='js' value="$('body').css('background','blue');" />
<input type='submit' value="Create Fiddle" />
</form>
- On this site click on the 'Create Fiddle'. This will open new jsFiddle window using the POST API.
- Notice that the background in the result has not turned blue and the internal console has error
"[Line 2] Uncaught ReferenceError: $ is not defined" - Click on the
Resourcesin the sidebar and clickRunagain - Now the script was loaded and it works.
It seems like the resources only get added when the Resources menu item got opened first.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels