()
| 1920 | }; |
| 1921 | |
| 1922 | function getInteractiveScript() { |
| 1923 | if (interactiveScript && interactiveScript.readyState === 'interactive') { |
| 1924 | return interactiveScript; |
| 1925 | } |
| 1926 | |
| 1927 | eachReverse(scripts(), function (script) { |
| 1928 | if (script.readyState === 'interactive') { |
| 1929 | return (interactiveScript = script); |
| 1930 | } |
| 1931 | }); |
| 1932 | return interactiveScript; |
| 1933 | } |
| 1934 | |
| 1935 | //Look for a data-main script attribute, which could also adjust the baseUrl. |
| 1936 | if (isBrowser && !cfg.skipDataMain) { |
no test coverage detected
searching dependent graphs…