Skip to content

Instantly share code, notes, and snippets.

@cajones
Last active August 29, 2015 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cajones/c1bc000a72dab3e0c4f0 to your computer and use it in GitHub Desktop.
Save cajones/c1bc000a72dab3e0c4f0 to your computer and use it in GitHub Desktop.
Ideas for Experimental Adapt API for deferred readiness
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