Skip to content

Instantly share code, notes, and snippets.

@valueof
Created July 12, 2010 18:24
Show Gist options
  • Save valueof/472854 to your computer and use it in GitHub Desktop.
Save valueof/472854 to your computer and use it in GitHub Desktop.
Description and examples for Disqus events
var disqus_config = function () {
var config = this; // Access to the config object
/*
All currently supported events:
* preData — fires just before we request for initial data
* preInit - fires after we get initial data but before we load any dependencies
* onInit - fires when all dependencies are resolved but before dtpl template is rendered
* afterRender - fires when template is rendered but before we show it
* onReady - everything is done
*/
config.callbacks.onReady.push(function () {
// This code will be executed when embed is ready and visible.
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment