Skip to content

Instantly share code, notes, and snippets.

@leopic
Created December 12, 2012 17:16
Show Gist options
  • Save leopic/4269688 to your computer and use it in GitHub Desktop.
Save leopic/4269688 to your computer and use it in GitHub Desktop.
$.subscribe('load.truefit', function(context) {
// truefit loaded
alert("truefit files have loaded!");
$('.tfc-fitrec-product').hide();
tfc.event('tfc-fitrec-product', 'render', function(context) {
// truefit rendered
// trigger the AB test here
console.log(context);
alert("truefit rendered!");
})
}, this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment