Disable font loading for paper-styles

Need to move it to soy template, as bundled js loads paper-tabs before gr-app.

Change-Id: Id844b093cd517912d698124117d1bc05330a4dc4
This commit is contained in:
Tao Zhou
2019-10-16 11:29:39 +02:00
parent bcd6dba57d
commit 4e792933c7
3 changed files with 2 additions and 6 deletions

View File

@@ -21,9 +21,6 @@ limitations under the License.
-->
<script>
window.Gerrit = window.Gerrit || {};
// Disable extra font load from paper-styles
window.polymerSkipLoadingFontRoboto = true;
</script>
<link rel="import" href="/bower_components/polymer/polymer.html">

View File

@@ -32,9 +32,6 @@ limitations under the License.
}
}
window.Gerrit = window.Gerrit || {};
// Disable extra font load from paper-styles
window.polymerSkipLoadingFontRoboto = true;
</script>
<link rel="import" href="/bower_components/polymer/polymer.html">

View File

@@ -40,6 +40,8 @@
</noscript>
<script>
// Disable extra font load from paper-styles
window.polymerSkipLoadingFontRoboto = true;
window.CLOSURE_NO_DEPS = true;
// TODO(taoalpha): clean up once p2 fully rolled out
{if $polymer2}window.POLYMER2 = true;{/if}