Skip to content

Instantly share code, notes, and snippets.

@MaxGfeller
Created April 2, 2014 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaxGfeller/9935931 to your computer and use it in GitHub Desktop.
Save MaxGfeller/9935931 to your computer and use it in GitHub Desktop.
most convenient domready
var co = require('co');
var thunkify = require('thunkify');
var domready = require('domready');
co(function*() {
yield thunkify(domready);
// dom is ready
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment