MCPcopy Create free account
hub / github.com/boost-ext/di / loadScript

Function loadScript

doc/cppnow-2017/js/reveal.js:345–356  ·  view source on GitHub ↗
( s )

Source from the content-addressed store, hash-verified

343 }
344
345 function loadScript( s ) {
346 head.ready( s.src.match( /([\w\d_\-]*)\.?js$|[^\\\/]*$/i )[0], function() {
347 // Extension may contain callback functions
348 if( typeof s.callback === 'function' ) {
349 s.callback.apply( this );
350 }
351
352 if( --scriptsToPreload === 0 ) {
353 proceed();
354 }
355 });
356 }
357
358 for( var i = 0, len = config.dependencies.length; i < len; i++ ) {
359 var s = config.dependencies[i];

Callers 1

loadFunction · 0.70

Calls 2

applyMethod · 0.80
proceedFunction · 0.70

Tested by

no test coverage detected