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