diff -r 35495f156c41 -r 8568e47379a2 src/js/main.js --- a/src/js/main.js Tue Dec 13 15:14:15 2011 +0100 +++ b/src/js/main.js Tue Dec 13 17:31:39 2011 +0100 @@ -7,7 +7,7 @@ /* crap code will be the first against the wall when the revolution comes */ -IriSP.loadLibs = function( libs, customCssPath, callback ) { +IriSP.loadLibs = function( libs, customCssPath, metadata_url, callback ) { // Localize jQuery variable IriSP.jQuery = null; @@ -117,7 +117,14 @@ $( '.dynamic_css' ).clone().appendTo( 'head' ); } - callback(); + IriSP.setupDataLoader(); + IriSP.__dataloader.get(metadata_url, + function(data) { + /* save the data so that we could re-use it to + configure the video + */ + IriSP.__jsonMetadata = data; + callback.call(window) }); }); } };