yepnope({
test : Modernizr.hashchange && Modernizr.history,
nope : [
\'resources/jquery-1.5.1.min.js\',
\'resources/jquery.ba-hashchange.js\'
],
complete : function(){
console.info(\'I will fire only once when both jquery and the hashchange script are loaded\');
// This code will be added to jQuerys DOM ready call stack
$(function(){
$(window).bind(\'hashchange\', function(){
console.info(location.hash);
});
});
}
});
// Only loads this for IE7 and IE8
yepnope(\'ie7!ie8!userInterface.js\');
// Caches a resource without executing it.
yepnope(\'preload!userInterface.js\');