<script>
YUI.GlobalConfig = {
    modules: {
        'github-api-mock': {
            fullpath: '../assets/promise/github-api-mock.js',
            requires: [],
            condition: {
                trigger: 'jsonp',
                when: 'instead',
                test: function () {
                    return (window.location.search.match(/[?&]mock=([^&]+)/) || [])[1] === 'true';
                }
            }
        }
    }  
};
</script>
