Skip to content

Commit 6d57c87

Browse files
DanielPintileiaddyosmani
authored andcommitted
Add noscript tags for fallback content (#43)
1 parent 6bb37c9 commit 6d57c87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
<link rel="<%= chunk.initial?'preload':'prefetch' %>" href="<%= htmlWebpackPlugin.files.publicPath + file %>" as="<%= file.match(/\.css$/)?'style':'script' %>"><% }}} %>
2727
</head>
2828
<body>
29-
<div id="app">This is your fallback content in case JavaScript fails to load.</div>
29+
<noscript>
30+
This is your fallback content in case JavaScript fails to load.
31+
</noscript>
32+
<div id="app"></div>
3033
<!-- Todo: only include in production -->
3134
<%= htmlWebpackPlugin.options.serviceWorkerLoader %>
3235
<!-- built files will be auto injected -->

0 commit comments

Comments
 (0)