From 1be9225eb1d1daffb68d2c84197066d2332b0d7c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 1 Nov 2017 18:25:08 +0100 Subject: [PATCH] Fixed flash of unstyled content --- CHANGELOG | 1 + material/base.html | 6 +++--- src/base.html | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c21c6bbc4..405ecaab8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ mkdocs-material-2.x.x (2017-xx-xx) * Added Russian translations * Fixed #542: Horizontal scrollbar between 1220px and 1234px * Fixed #553: Metadata values only rendering first character + * Fixed #558: Flash of unstyled content * Fixed favicon regression caused by deprecation upstream mkdocs-material-2.0.1 (2017-10-31) diff --git a/material/base.html b/material/base.html index c3ad85584..041b3b280 100644 --- a/material/base.html +++ b/material/base.html @@ -45,15 +45,15 @@ {{ config.site_name }} {% endif %} {% endblock %} - {% block libs %} - - {% endblock %} {% block styles %} {% if palette.primary or palette.accent %} {% endif %} {% endblock %} + {% block libs %} + + {% endblock %} {% block fonts %} {% if font != false %} - {% endblock %} - {% block styles %} @@ -111,6 +106,11 @@ {% endif %} {% endblock %} + + {% block libs %} + + {% endblock %} + {% block fonts %} {% if font != false %}