Bill Forney

Results 9 comments of Bill Forney

Also ensure that jQuery version present on page is at least 1.5 due to failure of fail method otherwise.

deferDef has a loaded property on each definition that is an expression. This is a temporary way to use this for now: jsDefer.deferDef({ jQuery: { bare: true, url: ASPNETCDN +...

The workaround here is to make loaded a string like: jsDefer.deferDef({ jQuery: { bare: true, url: ASPNETCDN + "/jQuery/jquery-1.6.1.js", urlMin: ASPNETCDN + "/jQuery/jquery-1.6.1.min.js", loaded: "!!window.jQuery" }, This string then gets...

Also, there is a bug in jsdefer, the loaded gets set to false always, even if you specify it. Workaround is to put this in jsdefer in the defer function:...

Example: ``` loader.addCSS = function (url) { if (loader.scripts[url] == undefined) { loader.scripts[url] = { loaded: true, callbacks: [] }; var link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("type", "text/css"); link.setAttribute("href", url);...

Also, maybe add a param for adding css to top or bottom of head.

note that some scripts' urls are not just as simple as flipping http:// to https:// ... facebook was guilty of this before, and there are others, where they add ssl....

one other thing that is a gripe of mine, though i understand why it isn't always a best practice to do this, is the lack of a way to say...

If you update to 4.5.1 you force people to have that framework version installed. To provide VS 2012 compatibility we should keep this at 4.5.