Skip to content

Commit 36093e7

Browse files
committed
Preload animation assets on homepage
1 parent 49779d1 commit 36093e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/assets/js/indexcanvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@
10801080
opacity: 1,
10811081
manifest: [
10821082
{
1083-
src: '../assets/img/com/index-animation.png',
1083+
src: '/assets/img/com/index-animation.png',
10841084
id: 'index-animation'
10851085
}
10861086
]

src/templates/pages/default.txp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<meta name="description" content="Blog article ‘<txp:category title />’ category archive.">
1313
<meta name="robots" content="noindex, follow">
1414
<txp:else />
15+
<link rel="preload" href="/assets/img/com/index-animation.png" as="image">
1516
<title>Textpattern CMS | Open source content management system</title>
1617
<meta name="description" content="Textpattern CMS is a free, PHP open source CMS (content management system) with a browser-based interface in over 50 languages.">
1718
<meta name="keywords" content="cms, content management systems, open source, blogs, blogging, free, wordpress alternatives, fast, lightweight, web design, web site design, web development, web site development, php, foss">

0 commit comments

Comments
 (0)