Browse Source

#595 load nicegui.css before Tailwind and Quasar

Falko Schindler 2 years ago
parent
commit
d1984b0a88
1 changed files with 2 additions and 3 deletions
  1. 2 3
      nicegui/templates/index.html

+ 2 - 3
nicegui/templates/index.html

@@ -5,13 +5,12 @@
     <meta name="viewport" content="{{ viewport }}" />
     <script src="{{ prefix | safe }}/_nicegui/{{version}}/static/socket.io.min.js"></script>
     <link href="{{ favicon_url }}" rel="shortcut icon" />
+    <link href="{{ prefix | safe }}/_nicegui/{{version}}/static/nicegui.css" rel="stylesheet" type="text/css" />
     <link href="{{ prefix | safe }}/_nicegui/{{version}}/static/fonts.css" rel="stylesheet" type="text/css" />
     <link href="{{ prefix | safe }}/_nicegui/{{version}}/static/quasar.prod.css" rel="stylesheet" type="text/css" />
     {% if tailwind %}
     <script src="{{ prefix | safe }}/_nicegui/{{version}}/static/tailwindcss.min.js"></script>
-    {% endif %}
-    <link href="{{ prefix | safe }}/_nicegui/{{version}}/static/nicegui.css" rel="stylesheet" type="text/css" />
-    {{ head_html | safe }}
+    {% endif %} {{ head_html | safe }}
   </head>
   <body>
     <script src="{{ prefix | safe }}/_nicegui/{{version}}/static/vue.global.prod.js"></script>