Skip to content

Commit f1606f8

Browse files
committed
Save a few milliseconds
1 parent a5feb13 commit f1606f8

File tree

11 files changed

+20
-18
lines changed

11 files changed

+20
-18
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ module.exports = function (grunt)
227227
dist: {
228228
files: [
229229
{
230+
'<%= paths.dest.js %>hi.js': ['<%= paths.src.js %>hi.js'],
230231
'<%= paths.dest.js %>app.js': [
231232
'node_modules/jquery/dist/jquery.slim.js',
232233
'node_modules/prismjs/prism.js',

src/403.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -13,6 +13,7 @@
1313
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1414
<meta name="color-scheme" content="dark light">
1515
<meta name="application-name" content="Textpattern Forum">
16+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1617
<title>403 forbidden / Textpattern CMS support forum</title>
1718
<meta name="description" content="Access to this resource is denied.">
1819
<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;type=rss" title="RSS active topics feed">
@@ -135,7 +136,6 @@ <h4 class="accessibility">Host details</h4>
135136
</p>
136137
</footer>
137138
</div>
138-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
139139
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
140140
</body>
141141
</html>

src/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -13,6 +13,7 @@
1313
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1414
<meta name="color-scheme" content="dark light">
1515
<meta name="application-name" content="Textpattern Forum">
16+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1617
<title>404 not found / Textpattern CMS support forum</title>
1718
<meta name="description" content="This page may have moved or is no longer available.">
1819
<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;type=rss" title="RSS active topics feed">
@@ -135,7 +136,6 @@ <h4 class="accessibility">Host details</h4>
135136
</p>
136137
</footer>
137138
</div>
138-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
139139
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
140140
</body>
141141
</html>

src/500.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -13,6 +13,7 @@
1313
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1414
<meta name="color-scheme" content="dark light">
1515
<meta name="application-name" content="Textpattern Forum">
16+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1617
<title>500 internal server error / Textpattern CMS support forum</title>
1718
<meta name="description" content="The web server encountered an unexpected error that prevented it from fulfilling your request.">
1819
</head>
@@ -120,7 +121,6 @@ <h4 class="accessibility">Host details</h4>
120121
</p>
121122
</footer>
122123
</div>
123-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
124124
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
125125
</body>
126126
</html>

src/503.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -13,6 +13,7 @@
1313
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1414
<meta name="color-scheme" content="dark light">
1515
<meta name="application-name" content="Textpattern Forum">
16+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1617
<title>503 service unavailable / Textpattern CMS support forum</title>
1718
<meta name="description" content="The web server is temporarily unable to fulfil your request, please try again later.">
1819
</head>
@@ -120,7 +121,6 @@ <h4 class="accessibility">Host details</h4>
120121
</p>
121122
</footer>
122123
</div>
123-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
124124
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
125125
</body>
126126
</html>

src/style/Textpattern/admin.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="<pun_language>">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -12,6 +12,7 @@
1212
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1313
<meta name="color-scheme" content="dark light">
1414
<meta name="application-name" content="Textpattern Forum">
15+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1516
<pun_head>
1617
<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;order=posted&amp;type=rss" title="RSS new topics feed">
1718
</head>
@@ -125,7 +126,6 @@
125126
</p>
126127
</footer>
127128
</div>
128-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
129129
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
130130
</body>
131131
</html>

src/style/Textpattern/help.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="<pun_language>">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -12,6 +12,7 @@
1212
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1313
<meta name="color-scheme" content="dark light">
1414
<meta name="application-name" content="Textpattern Forum">
15+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1516
<pun_head>
1617
<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;order=posted&amp;type=rss" title="RSS new topics feed">
1718
</head>
@@ -179,7 +180,6 @@
179180
</p>
180181
</footer>
181182
</div>
182-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
183183
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
184184
</body>
185185
</html>

src/style/Textpattern/js/hi.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
document.documentElement.className = 'js';

src/style/Textpattern/main.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="<pun_language>">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -12,6 +12,7 @@
1212
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1313
<meta name="color-scheme" content="dark light">
1414
<meta name="application-name" content="Textpattern Forum">
15+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1516
<pun_head>
1617
<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;order=posted&amp;type=rss" title="RSS new topics feed">
1718
</head>
@@ -125,7 +126,6 @@
125126
</p>
126127
</footer>
127128
</div>
128-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
129129
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
130130
</body>
131131
</html>

src/style/Textpattern/maintenance.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="<pun_language>">
33
<head>
4-
<script async src="https://textpattern.com/assets/js/hi.js"></script>
4+
<script async src="style/Textpattern/js/hi.js"></script>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
77
<link rel="preload" href="https://textpattern.com/assets/fonts/pt-serif-v11-latin-ext-regular.woff2" as="font" type="font/woff2" crossorigin>
@@ -12,6 +12,7 @@
1212
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
1313
<meta name="color-scheme" content="dark light">
1414
<meta name="application-name" content="Textpattern Forum">
15+
<script defer src="style/Textpattern/js/app.@@timestamp.js"></script>
1516
<pun_head>
1617
</head>
1718
<body id="page-maintenance" itemscope itemtype="https://schema.org/WebPage">
@@ -108,7 +109,6 @@
108109
</p>
109110
</footer>
110111
</div>
111-
<script src="style/Textpattern/js/app.@@timestamp.js"></script>
112112
<noscript>JavaScript is currently disabled in your browser - activate it for the best experience.</noscript>
113113
</body>
114114
</html>

0 commit comments

Comments
 (0)