diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-09-08 23:11:55 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-09-08 23:11:55 +0000 |
commit | a88ef1a01131d32b61be3c0895cd592c16f49178 (patch) | |
tree | fa018162ec1ac0ce92ca3b8dafdb8fe4963d4b6a | |
parent | efb3a536053b48f3b6f86e9dc936427e7cba4f2f (diff) | |
download | gitlab-ce-a88ef1a01131d32b61be3c0895cd592c16f49178.tar.gz |
Remove bootlint which takes 1 second of render time on development
-rw-r--r-- | app/views/layouts/_bootlint.haml | 5 | ||||
-rw-r--r-- | app/views/layouts/_head.html.haml | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/app/views/layouts/_bootlint.haml b/app/views/layouts/_bootlint.haml deleted file mode 100644 index d603a74c4e4..00000000000 --- a/app/views/layouts/_bootlint.haml +++ /dev/null @@ -1,5 +0,0 @@ --# haml-lint:disable InlineJavaScript -:javascript - window.onload = function() { - var s=document.createElement("script");s.onload=function(){bootlint.showLintReportForCurrentDocument([], {hasProblems: false, problemFree: false});};s.src="https://maxcdn.bootstrapcdn.com/bootlint/latest/bootlint.min.js";document.body.appendChild(s); - } diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index 34e85fef6d9..e6a10e500a4 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -76,4 +76,3 @@ = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id') = render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id') - = render 'layouts/bootlint' if Rails.env.development? |