Skip to content

Commit fae8853

Browse files
committed
Fix preload
1 parent cc0ca10 commit fae8853

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interslavic",
3-
"version": "1.25.6",
3+
"version": "1.25.7",
44
"description": "Interslavic Dictionary",
55
"license": "MIT",
66
"author": {

src/index.html.ejs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<!doctype html>
22
<html lang="en" style="height: 100%">
33
<head>
4-
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
5-
<script src="is_com.js"></script>
4+
<script>
5+
window.INTERSLAVIC_PRELOAD = {}
6+
INTERSLAVIC_PRELOAD['data/basic.json'] = fetch('data/basic.json').then((res) => res.json())
7+
INTERSLAVIC_PRELOAD['data/translateStatistic.json'] = fetch('data/translateStatistic.json').then((res) => res.json())
8+
</script>
9+
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" defer></script>
10+
<script src="is_com.js" defer></script>
611
<meta charset="UTF-8">
712
<meta name="viewport" content="width=device-width, initial-scale=1">
813
<meta name="theme-color" content="#272727">
@@ -29,11 +34,6 @@
2934
content="It is a dictionary of the Interslavic language with translations into most of the Slavic languages, as well as into English, German and others. The project is being developed by a community of fans of this zonal constructed language.">
3035
</head>
3136
<body>
32-
<script>
33-
window.INTERSLAVIC_PRELOAD = {}
34-
INTERSLAVIC_PRELOAD['data/basic.json'] = fetch('data/basic.json').then((res) => res.json())
35-
INTERSLAVIC_PRELOAD['data/translateStatistic.json'] = fetch('data/translateStatistic.json').then((res) => res.json())
36-
</script>
3737
<noscript>
3838
<h1>Interslavic Wordbook</h1>
3939
<p>To use the site "Interslavic Dictionary", please enable javascript in your browser.</p>
@@ -64,7 +64,7 @@
6464
<a href="https://github.com/sonic16x/interslavic">https://github.com/sonic16x/interslavic</a>
6565
</noscript>
6666
<div id="app"></div>
67-
<script>
67+
<script defer>
6868
const theme = JSON.parse(localStorage.getItem('reduxState'))?.colorTheme
6969
7070
if (theme) {

0 commit comments

Comments
 (0)