-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isLoaded feature #9
Comments
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({ ... |
The workaround here is to make loaded a string like: jsDefer.deferDef({ This string then gets eval'd by jsdefer. |
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:
|
When a script is loaded on the page via script tag and then jsdefer tries to include it jsdefer should test for it.
jsdefer should provide a boolean expression test configurable in the script definition via deferDef... The old Sys.loader had this feature and it allows conditionally including a script based on how you define it. There are lots of uses for this...
Load script B only if script A is there (assuming you're not using jsdefer exclusively for script loading (we can't totally enforce it in some of our scenarios).
The text was updated successfully, but these errors were encountered: