Clay namespace
Everything Clay related lives within the Clay namespace.
Clay.ready()
Clay.ready() is similar to jQuery.ready(). You pass a (usually anonymous) function to it, and it will run once the Clay.io API is done loading.
Here's an example of something you might use it for.
Clay.ready( function() {
// Clay is loaded, we can give the user an achievement just for the heck of it
( new Clay.Achievement( { id: 1 } ) ).award();
} );
Provide Feedback
We take customer support, and the quality of our developer tools and documentation very seriously. We want to hear how you think we can improve our documentation! Let us know if anything is missing, or unclear on this documentation page, and we'll get that fixed!