diff options
Diffstat (limited to 'docs/src/templates/index.html')
| -rw-r--r-- | docs/src/templates/index.html | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index e4afc731..1deb08e1 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -20,6 +20,11 @@      // we can't add css/js the usual way, because some browsers (FF) eagerly prefetch resources      // before the base attribute is added, causing 404 and terribly slow loading of the docs app.      (function() { +      if (window.name.indexOf('NG_DEFER_BOOTSTRAP!') == 0) { +        //TODO(i): super ugly hack to temporarily speed up our e2e tests until we move to protractor + extracted examples +        window.RUNNING_IN_NG_TEST_RUNNER = true; +      } +        var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],            rUrl = /(#!\/|api|guide|misc|tutorial|cookbook|error|index[^\.]*\.html).*$/,            baseUrl = location.href.replace(rUrl, indexFile), @@ -50,7 +55,9 @@        addTag('script', {src: 'components/angular-bootstrap.js' }, sync);        addTag('script', {src: 'components/angular-bootstrap-prettify.js' }, sync);        addTag('script', {src: 'components/google-code-prettify.js' }, sync); -      addTag('script', {src: 'components/' + (debug ? 'lunr.js' : 'lunr.min.js') }, sync); +      if (!window.RUNNING_IN_NG_TEST_RUNNER) { +        addTag('script', {src: 'components/' + (debug ? 'lunr.js' : 'lunr.min.js') }, sync); +      }        addTag('script', {src: 'components/marked.js' }, sync);        addTag('script', {src: 'docs-data.js'}, sync);        addTag('script', {src: 'js/docs.js'}, sync); | 
