head.js on jsFiddle

This is a quick test of using head.js to control the load of scripts in jsFiddle

by rudylattae

HTML

<script src="https://github.com/headjs/headjs/raw/master/dist/head.load.min.js"></script>
<link rel="stylesheet" href="https://github.com/rudylattae/jasmine-species/raw/master/lib/jasmine-1.0.1/jasmine.css">
<link rel="stylesheet" href="https://github.com/rudylattae/jasmine-species/raw/master/src/jasmine-species/calm.css">

JavaScript

// load dependencies
head.js(
    'https://github.com/rudylattae/jasmine-species/raw/master/lib/namespacedotjs-1.1/Namespace.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/lib/jasmine-1.0.1/jasmine.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/lib/jasmine-1.0.1/jasmine-html.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/src/jasmine-species/jasmine-grammar.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/src/jasmine-species/jasmine-reporting.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/spec/jasmine-grammar/ContextSpecification.spec.js',
    'https://github.com/rudylattae/jasmine-species/raw/master/spec/jasmine-reporting/StyledHtmlReporter.spec.js'
);

head(function() {
    Namespace.use('jasmine.grammar.FeatureStory.*');
    
    feature('Good', function() { });
    
    jasmine.getEnv().addReporter(new jasmine.reporting.StyledHtmlReporter());
    jasmine.getEnv().execute();
});