Skip to content

Commit

Permalink
Update key assets with preload headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bookernath committed Sep 12, 2022
1 parent f95b717 commit ee53805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix "incorrect value type" for anonymous reviews in Google Search Console [#2255]https://github.com/bigcommerce/cornerstone/pull/2255
- Reduce lodash usage [#2256]https://github.com/bigcommerce/cornerstone/pull/2256
- Bump stencil utils to 6.12.1: fix broken add to cart button [#2259]https://github.com/bigcommerce/cornerstone/pull/2259
- Update key render-blocking resources to be preloaded via HTTP headers/Early Hints [#2261](https://github.com/bigcommerce/cornerstone/pull/2261)

## 6.5.0 (06-24-2022)
- Category icons do not appear in Search Form [#2221]https://github.com/bigcommerce/cornerstone/pull/2221
Expand Down
9 changes: 4 additions & 5 deletions templates/layout/base.html
Expand Up @@ -24,14 +24,13 @@
window.lazySizesConfig = window.lazySizesConfig || {};
window.lazySizesConfig.loadMode = 1;
</script>
<script async src="{{cdn 'assets/dist/theme-bundle.head_async.js'}}"></script>
<script async src="{{cdn 'assets/dist/theme-bundle.head_async.js' resourceHint='preload'}}"></script>

{{getFontsCollection font-display='block'}}
{{getFontsCollection font-display='block' resourceHint='preload'}}

<link rel="preload" href="{{cdn 'assets/dist/theme-bundle.font.js'}}" as="script">
<script async src="{{cdn 'assets/dist/theme-bundle.font.js'}}"></script>

{{{stylesheet '/assets/css/theme.css'}}}
{{{stylesheet '/assets/css/theme.css' resourceHint='preload'}}}

{{{head.scripts}}}

Expand Down Expand Up @@ -66,7 +65,7 @@
window.stencilBootstrap("{{page_type}}", {{jsContext}}).load();
}
</script>
<script async defer src="{{cdn 'assets/dist/theme-bundle.main.js'}}" onload="onThemeBundleMain()"></script>
<script async defer src="{{cdn 'assets/dist/theme-bundle.main.js' resourceHint='preload'}}" onload="onThemeBundleMain()"></script>

{{{footer.scripts}}}
</body>
Expand Down

0 comments on commit ee53805

Please sign in to comment.