Skip to content
Snippets Groups Projects
Commit 19ce5852ad10 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Load synchronously CSS when already visited

parent ebb05d8d8947
Branches branch/default
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@
<style type="text/css">
{{ css|safe }}
</style>
{% endif %}
<link rel="preload" href="{{ url_for('static', filename='css/main.css') }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"/>
......@@ -45,6 +44,11 @@
<link rel="preload" href="{{ url_for('static', filename='css/main.css') }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"/>
</noscript>
{% else %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"/>
{% endif %}
<noscript>
<link rel="stylesheet" href="{{ url_for('static', filename='css/noscript.css') }}"/>
</noscript>
{% endblock style %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment