BorisMoore/jsdefer — Issue #14: Multiple script definitions with same url will choose last definition regardless of name.
Author: wforney
Created: 2011-12-19 21:46:43+00:00
State: open

Multiple script definitions with same url will choose last definition regardless of name.

Example:

jQuery: {
bare: true,
url: aspnetcdn + "/jQuery/jquery-1.7.1.js",
urlMin: aspnetcdn + "/jQuery/jquery-1.7.1.min.js",
loaded: "!!window.jQuery"
},
jQuery171: {
bare: true,
url: aspnetcdn + "/jQuery/jquery-1.7.1.js",
urlMin: aspnetcdn + "/jQuery/jquery-1.7.1.min.js",
loaded: "window.checkjQueryVersion(171)"
},

defer call to jQuery will load jQuery171 definition script. This is not expected (loaded was different, causing test to fail in some cases, which was a bad thing)