perf(loading): load minified assets

This commit is contained in:
Romain J 2020-05-17 00:37:22 +02:00
parent 9051fac4db
commit 1b36d3fa98
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url(uikit/uikit.css);
@import url(uikit/uikit.min.css);
html[data-theme="dark"] .uk-offcanvas .uk-nav > li > a.active {
color: #16171a; }
html[data-theme="dark"] .uk-logo img {

File diff suppressed because one or more lines are too long

View file

@ -7,8 +7,8 @@ Je suis spécialisé en python, pas en js...
Don't judge me
/-->
<script src="{% static 'javascripts/uikit/uikit.js' %}"></script>
<script src="{% static 'javascripts/uikit/uikit-icons.js' %}"></script>
<script src="{% static 'javascripts/uikit/uikit.min.js' %}"></script>
<script src="{% static 'javascripts/uikit/uikit-icons.min.js' %}"></script>
<script>
window.theme = document.querySelector('input[name=theme]');
theme.checked = document.documentElement.getAttribute('data-theme') === 'dark';

View file

@ -49,7 +49,7 @@
{% endif %}
<link rel="stylesheet" href="{% static 'stylesheets/css/index.css' %}">
<link rel="stylesheet" href="{% static 'stylesheets/css/index.min.css' %}">
<script src="{% static 'javascripts/turbolinks.js' %}"></script>
<script src="{% static 'javascripts/main.js' %}" defer></script>