MCPcopy
hub / github.com/requirejs/requirejs / getInteractiveScript

Function getInteractiveScript

require.js:1993–2004  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1991 };
1992
1993 function getInteractiveScript() {
1994 if (interactiveScript && interactiveScript.readyState === 'interactive') {
1995 return interactiveScript;
1996 }
1997
1998 eachReverse(scripts(), function (script) {
1999 if (script.readyState === 'interactive') {
2000 return (interactiveScript = script);
2001 }
2002 });
2003 return interactiveScript;
2004 }
2005
2006 //Look for a data-main script attribute, which could also adjust the baseUrl.
2007 if (isBrowser && !cfg.skipDataMain) {

Callers 1

require.jsFile · 0.85

Calls 2

eachReverseFunction · 0.85
scriptsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…