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