mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-02 21:18:12 +00:00
chore(app): added prefetching images & fonts; optimized assets
This commit is contained in:
+40
-29
@@ -1,34 +1,45 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="pl">
|
<html lang="pl">
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
||||||
|
|
||||||
<!-- Favicon -->
|
<head>
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png" />
|
<meta charset="utf-8" />
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png" />
|
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png" />
|
<!-- Favicon -->
|
||||||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png" />
|
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png" />
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png" />
|
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png" />
|
||||||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png" />
|
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png" />
|
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png" />
|
||||||
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png" />
|
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png" />
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png" />
|
||||||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
|
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png" />
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png" />
|
||||||
<meta name="msapplication-TileColor" content="#ffffff" />
|
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png" />
|
||||||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||||
<meta name="theme-color" content="#ffffff" />
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png" />
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||||
|
<link rel="manifest" href="/manifest.json" />
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||||
|
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
|
||||||
|
<meta name="theme-color" content="#ffffff" />
|
||||||
|
|
||||||
|
<!-- Preloads -->
|
||||||
|
<link rel="preload" href="/fonts/libre-franklin-500.woff2" as="font" type="font/woff2" crossorigin />
|
||||||
|
<link rel="preload" href="/fonts/libre-franklin-700.woff2" as="font" type="font/woff2" crossorigin />
|
||||||
|
<link rel="preload" href="/fonts/libre-franklin-800.woff2" as="font" type="font/woff2" crossorigin />
|
||||||
|
<link rel="preload" href="/fonts/libre-franklin-regular.woff2" as="font" type="font/woff2" crossorigin />
|
||||||
|
|
||||||
|
<link rel="preload" href="/favicon.ico" as="image" />
|
||||||
|
|
||||||
|
<title>GeneraTOR</title>
|
||||||
|
<meta name="description" content="Generator rozkazów pisemnych online" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
<title>GeneraTOR</title>
|
|
||||||
<meta name="description" content="Generator rozkazów pisemnych online" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app"></div>
|
|
||||||
<script type="module" src="/src/main.ts"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+27
-20
@@ -1,24 +1,31 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Libre Franklin';
|
font-display: swap;
|
||||||
src: url('/fonts/LibreFranklin-Bold.woff2') format('woff2');
|
font-family: 'Libre Franklin';
|
||||||
font-weight: 800;
|
font-style: normal;
|
||||||
font-style: normal;
|
font-weight: 400;
|
||||||
font-display: swap;
|
src: url('/fonts/libre-franklin-regular.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Libre Franklin';
|
font-display: swap;
|
||||||
src: url('/fonts/LibreFranklin-Regular.woff2') format('woff2');
|
font-family: 'Libre Franklin';
|
||||||
font-weight: 500;
|
font-style: normal;
|
||||||
font-style: normal;
|
font-weight: 500;
|
||||||
font-display: swap;
|
src: url('/fonts/libre-franklin-500.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Libre Franklin';
|
font-display: swap;
|
||||||
src: url('/fonts/LibreFranklin-SemiBold.woff2') format('woff2');
|
font-family: 'Libre Franklin';
|
||||||
font-weight: 700;
|
font-style: normal;
|
||||||
font-style: normal;
|
font-weight: 700;
|
||||||
font-display: swap;
|
src: url('/fonts/libre-franklin-700.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Libre Franklin';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
src: url('/fonts/libre-franklin-800.woff2') format('woff2');
|
||||||
|
}
|
||||||
+1
-1
@@ -23,7 +23,7 @@ export default defineConfig({
|
|||||||
VitePWA({
|
VitePWA({
|
||||||
registerType: 'prompt',
|
registerType: 'prompt',
|
||||||
workbox: {
|
workbox: {
|
||||||
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
|
globPatterns: ['**/*.{js,css,html,png,svg,img,woff2,ico}'],
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: /^https:\/\/stacjownik.spythere.eu\/\/api\/getSceneries/i,
|
urlPattern: /^https:\/\/stacjownik.spythere.eu\/\/api\/getSceneries/i,
|
||||||
|
|||||||
Reference in New Issue
Block a user