Skip to content

Commit 0e27aef

Browse files
marjisoundJamieB-gu
andcommitted
Only cache the js bundle rather than running it
Co-authored-by: Jamie B <[email protected]>
1 parent b994ed8 commit 0e27aef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dotcom-rendering/webpack/rendered-items-assets-template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<style>
77
<%= styles %>
88
</style>
9+
<link
10+
rel="prefetch"
11+
href="https://assets.guim.co.uk/assets/<%= htmlWebpackPlugin.files.js %>"
12+
/>
913
</head>
1014
<body>
1115
<%= bodyContent %>

dotcom-rendering/webpack/webpack.config.client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ module.exports = ({ build }) => ({
150150
__dirname,
151151
'rendered-items-assets-template.html',
152152
),
153+
inject: false,
153154
templateParameters: {
154155
styles: fontAssetsCss,
155156
bodyContent: fontDivsHtml,

0 commit comments

Comments
 (0)