diff --git a/packages/gatsby/src/cache-dir/static-entry.js b/packages/gatsby/src/cache-dir/static-entry.js
index 53bdbe1088bde..b677047053c28 100644
--- a/packages/gatsby/src/cache-dir/static-entry.js
+++ b/packages/gatsby/src/cache-dir/static-entry.js
@@ -168,6 +168,10 @@ export default (pagePath, callback) => {
return { rel: `preload`, name: chunk }
})
+ namedChunkGroups[s].assets.forEach(asset =>
+ chunks.push({ rel: `preload`, name: asset })
+ )
+
const childAssets = namedChunkGroups[s].childAssets
for (const rel in childAssets) {
chunks = merge(
@@ -239,28 +243,32 @@ export default (pagePath, callback) => {
.slice(0)
.reverse()
.forEach(style => {
- // Add s for styles.
- headComponents.push(
-
- )
-
- headComponents.unshift(
-
- )
+ // Add s for styles that should be prefetched
+ // otherwise, inline as a