UNPKG

@benjaminreid/ready.js

Version:

Takes the pain out of writing conditional initialisation code

9 lines (6 loc) 191 B
(function() { // when an element with class="post" is in the DOM, our callback is called ready('.post', function(post) { post.innerHTML += " was invoked with ready.js"; }); })();