()
| 1928 | }; |
| 1929 | |
| 1930 | function getInteractiveScript() { |
| 1931 | if (interactiveScript && interactiveScript.readyState === 'interactive') { |
| 1932 | return interactiveScript; |
| 1933 | } |
| 1934 | |
| 1935 | eachReverse(scripts(), function (script) { |
| 1936 | if (script.readyState === 'interactive') { |
| 1937 | return (interactiveScript = script); |
| 1938 | } |
| 1939 | }); |
| 1940 | return interactiveScript; |
| 1941 | } |
| 1942 | |
| 1943 | //Look for a data-main script attribute, which could also adjust the baseUrl. |
| 1944 | if (isBrowser && !cfg.skipDataMain) { |
no test coverage detected