Khan/khan-exercises — Issue #10957: Requests for /khan-exercise.js being sent to server by review page
Author: dmnd
Created: 2012-01-11 18:50:07+00:00
State: open

Exercise source code has a script tag like this in it so that they work standalone:

This isn't needed when exercises are deployed, as the javascript is put into a single packaged file. But review mode is causing a lot requests for www.khanacademy.org/khan-exercise.js which are 404ing. As far as I can tell this isn't causing any major issues, but it should be fixed as it indicates something unexpected is occurring.

I did some debugging and found that bare script elements are hanging out in newContents inside loadExercises(). These are probably being added to the page somehow, which causes the request. I didn't get as far as solving the issue, so I'm posting this issue in case anyone wants to debug it before I get to it.