-
Notifications
You must be signed in to change notification settings - Fork 322
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
Complete Callback No Longer Global? #100
Comments
It certainly seems like we can add this to the list of bugs that fixing other things about the Thanks for the report. This is helpful for adding to our test suite. |
Awesome, thank you! |
Duplicate? #96 |
@lencioni yeah, duplicate behavior definitely. Like that issue, I'm not sure what version this happened in either. |
Has this issue been fixed? I just noticed it yesterday and it was just luck i found this issue reported, kind of have a site to launch and it depends on this function working. Any one know what version of yepnope this still works with? |
I'm not sure what version of yepnope it is, but the build included in Modernizr 2.0.6 works fine. |
Just bumping this issue, it's still cropping up in Modernizr 2.6.1. Test code: <html>
<head>
<script src="m.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
Modernizr.load('http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
</script>
<body>
<p>This is my page</p>
<script>
Modernizr.load({
complete: function() {
jQuery(function($){
$('body').append("<p>jQuery, why u no load?</p>");
});
}
});
</script> |
Is there are news on how a fix for this is progressing? |
In previous versions of YN, you could use a
complete
callback later down the page without loading any resources and it wouldn't fire until all of the scripts queued in YN were loaded. This was really handy for doing stuff like per-page jQuery plugin yanks or embedding a little bit of jQuery dependent script into a page. It seems however that newer versions have broken this functionality? For example:That jQuery block doesn't execute and we get an uncaught reference error.
The text was updated successfully, but these errors were encountered: