Skip to content

Instantly share code, notes, and snippets.

@valueof
Created July 12, 2010 18:24

Revisions

  1. valueof created this gist Jul 12, 2010.
    16 changes: 16 additions & 0 deletions disqus_events.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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.
    });
    };