Last active
August 29, 2015 14:04
-
-
Save cajones/c1bc000a72dab3e0c4f0 to your computer and use it in GitHub Desktop.
Ideas for Experimental Adapt API for deferred readiness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['coreJs/adapt', 'jquery'], function (Adapt, $) }{ | |
var readiness = Adapt.deferReadiness(); //signal the Core that I want to delay startup | |
//do something async | |
$.getJson('/data').always(function (data) { | |
readiness.advance(); //signal that the plugin is ready to move on. | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment