Skip to content

Commit

Permalink
Fix preload (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic16x authored Dec 17, 2024
1 parent cc0ca10 commit 4534c56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interslavic",
"version": "1.25.6",
"version": "1.25.7",
"description": "Interslavic Dictionary",
"license": "MIT",
"author": {
Expand Down
16 changes: 8 additions & 8 deletions src/index.html.ejs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<!doctype html>
<html lang="en" style="height: 100%">
<head>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>
<script src="is_com.js"></script>
<script>
window.INTERSLAVIC_PRELOAD = {}
INTERSLAVIC_PRELOAD['data/basic.json'] = fetch('data/basic.json').then((res) => res.json())
INTERSLAVIC_PRELOAD['data/translateStatistic.json'] = fetch('data/translateStatistic.json').then((res) => res.json())
</script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" defer></script>
<script src="is_com.js" defer></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#272727">
Expand All @@ -29,11 +34,6 @@
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.">
</head>
<body>
<script>
window.INTERSLAVIC_PRELOAD = {}
INTERSLAVIC_PRELOAD['data/basic.json'] = fetch('data/basic.json').then((res) => res.json())
INTERSLAVIC_PRELOAD['data/translateStatistic.json'] = fetch('data/translateStatistic.json').then((res) => res.json())
</script>
<noscript>
<h1>Interslavic Wordbook</h1>
<p>To use the site "Interslavic Dictionary", please enable javascript in your browser.</p>
Expand Down Expand Up @@ -64,7 +64,7 @@
<a href="https://github.com/sonic16x/interslavic">https://github.com/sonic16x/interslavic</a>
</noscript>
<div id="app"></div>
<script>
<script defer>
const theme = JSON.parse(localStorage.getItem('reduxState'))?.colorTheme
if (theme) {
Expand Down

0 comments on commit 4534c56

Please sign in to comment.