Commit e2782042 authored by JosephK's avatar JosephK
Browse files

Merge branch 'master' into 'master'

Increases the number of files to be preloaded

See merge request framasoft/accueil!103
parents 1ac77af0 885bde13
......@@ -27,6 +27,11 @@
'link#preload-2': preload[2],
'link#preload-3': preload[3],
'link#preload-4': preload[4],
'link#preload-5': preload[5],
'link#preload-6': preload[6],
'link#preload-7': preload[7],
'link#preload-8': preload[8],
'link#preload-9': preload[9],
}"
/>
<router-view />
......@@ -53,7 +58,7 @@ export default {
/* Preload */
const preload = []; /* array of { href: '', as: '' } */
const nodes = 5; /* link[rel="preload"] in index.html */
const nodes = 10; /* link[rel="preload"] in index.html */
let preloadList = []; /* main and route files to preload */
const mainList = this.$te('meta.preload') ? this.$t('meta.preload') : [];
const routeList = this.$te(`meta.${this.$route.meta.id}.preload`)
......
......@@ -28,6 +28,11 @@
<link id="preload-2" rel="preload" href="" as="">
<link id="preload-3" rel="preload" href="" as="">
<link id="preload-4" rel="preload" href="" as="">
<link id="preload-5" rel="preload" href="" as="">
<link id="preload-6" rel="preload" href="" as="">
<link id="preload-7" rel="preload" href="" as="">
<link id="preload-8" rel="preload" href="" as="">
<link id="preload-9" rel="preload" href="" as="">
</head>
<body>
<div id="app"></div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment