Skip to content

Commit e5163b6

Browse files
committed
Load theme.js in header, to avoid flickering
1 parent f850061 commit e5163b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/templates/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<link href="{{ settings.STATIC_IETF_ORG }}/fonts/noto-sans-mono/import.css" rel="stylesheet">
2020
<link rel="stylesheet" href="{% static 'ietf/css/ietf.css' %}">
2121
<link rel="stylesheet" href="{% static 'ietf/css/select2.css' %}">
22+
{# load this in the head, to prevent flickering #}
23+
<script src="{% static 'ietf/js/theme.js' %}"></script>
2224
<style>
2325
{% block morecss %}{% endblock %}
2426
</style>
@@ -159,7 +161,6 @@
159161
{% endblock %}
160162
{% block js %}
161163
{% endblock %}
162-
<script src="{% static 'ietf/js/theme.js' %}"></script>
163164
<script src="{% static 'ietf/js/select2.js' %}"></script>
164165
<script>
165166
$('#navbar-doc-search').on('select2:select', function (e) {

0 commit comments

Comments
 (0)