mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
preloading the stuff
This commit is contained in:
parent
dd4b2cb0b9
commit
cebeca43cb
1 changed files with 102 additions and 88 deletions
|
@ -8,6 +8,18 @@
|
||||||
<meta name="description" content="Free and Open Source Machine Translation API. 100% self-hosted, offline capable and easy to setup. Run your own API server in just a few minutes.">
|
<meta name="description" content="Free and Open Source Machine Translation API. 100% self-hosted, offline capable and easy to setup. Run your own API server in just a few minutes.">
|
||||||
<meta name="keywords" content="translation,api">
|
<meta name="keywords" content="translation,api">
|
||||||
|
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='icon.svg') }}" as="image" />
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='js/vue@2.js') }}" as="script">
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='js/materialize.min.js') }}" as="script">
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='js/prism.min.js') }}" as="script">
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='js/app.js') }}?v={{ version }}" as="script">
|
||||||
|
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='css/materialize.min.css') }}" as="style"/>
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='css/material-icons.css') }}" as="style"/>
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='css/prism.min.css') }}" as="style"/>
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='css/main.css') }}?v={{ version }}" as="style"/>
|
||||||
|
<link rel="preload" href="{{ url_for('static', filename='css/dark-theme.css') }}" as="style"/>
|
||||||
|
|
||||||
<meta property="og:title" content="LibreTranslate - Free and Open Source Machine Translation API" />
|
<meta property="og:title" content="LibreTranslate - Free and Open Source Machine Translation API" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://libretranslate.com" />
|
<meta property="og:url" content="https://libretranslate.com" />
|
||||||
|
@ -15,12 +27,7 @@
|
||||||
<meta property="og:description" name="description" class="swiftype" content="Free and Open Source Machine Translation API. 100% self-hosted, no limits, no ties to proprietary services. Run your own API server in just a few minutes."/>
|
<meta property="og:description" name="description" class="swiftype" content="Free and Open Source Machine Translation API. 100% self-hosted, no limits, no ties to proprietary services. Run your own API server in just a few minutes."/>
|
||||||
|
|
||||||
<script src="{{ url_for('static', filename='js/vue@2.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/vue@2.js') }}"></script>
|
||||||
<!-- Compiled and minified CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/materialize.min.css') }}">
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/material-icons.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/prism.min.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}?v={{ version }}" />
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/dark-theme.css') }}" />
|
|
||||||
|
|
||||||
{% if gaId %}
|
{% if gaId %}
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
@ -32,6 +39,13 @@
|
||||||
gtag('config', '{{ gaId }}');
|
gtag('config', '{{ gaId }}');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Compiled and minified CSS -->
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/materialize.min.css') }}">
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/material-icons.css') }}" />
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/prism.min.css') }}" />
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}?v={{ version }}" />
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/dark-theme.css') }}" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="white">
|
<body class="white">
|
||||||
|
|
Loading…
Reference in a new issue