Skip to content

Commit

Permalink
Merge pull request #31 from youcan-shop/TH-74
Browse files Browse the repository at this point in the history
TH-74: All themes > Performance > Eliminate render-blocking resources
  • Loading branch information
ibrilBadreddine authored Aug 28, 2024
2 parents 3b4d466 + 8c9f029 commit 504d15b
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion themes/aura/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'navbar.css' | asset_url | stylesheet_tag }}
{{ 'navbar.css' | asset_url | preload_tag }}

{% style %}
:root{
Expand Down
2 changes: 1 addition & 1 deletion themes/aura/sections/notice-bar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{% style %}
:root {
Expand Down
2 changes: 1 addition & 1 deletion themes/aura/sections/product-reviews.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{%- assign selected_product = section.settings.product %}

Expand Down
4 changes: 2 additions & 2 deletions themes/aura/snippets/head-config.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
const ratings = "{{ 'reviews.ratings' | t }}";
{% endjavascript %}

{{ 'main.css' | asset_url | stylesheet_tag }}
{{ 'utils.css' | asset_url | stylesheet_tag }}
{{ 'main.css' | asset_url | preload_tag }}
{{ 'utils.css' | asset_url | preload_tag }}

{% assign store_title = store.title | default: store.name %}

Expand Down
2 changes: 1 addition & 1 deletion themes/harmony/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'navbar.css' | asset_url | stylesheet_tag }}
{{ 'navbar.css' | asset_url | preload_tag }}

{% style %}
:root{
Expand Down
2 changes: 1 addition & 1 deletion themes/harmony/sections/notice-bar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{% style %}
:root {
Expand Down
2 changes: 1 addition & 1 deletion themes/harmony/sections/product-reviews.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{%- assign selected_product = section.settings.product %}

Expand Down
4 changes: 2 additions & 2 deletions themes/harmony/snippets/head-config.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
const ratings = "{{ 'reviews.ratings' | t }}";
{% endjavascript %}

{{ 'main.css' | asset_url | stylesheet_tag }}
{{ 'utils.css' | asset_url | stylesheet_tag }}
{{ 'main.css' | asset_url | preload_tag }}
{{ 'utils.css' | asset_url | preload_tag }}

{% assign store_title = store.title | default: store.name %}

Expand Down
3 changes: 2 additions & 1 deletion themes/meraki/sections/main-navbar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ 'navbar.css' | asset_url | stylesheet_tag }}
{{ 'navbar.css' | asset_url | preload_tag }}


{% style %}
:root {
Expand Down
2 changes: 1 addition & 1 deletion themes/meraki/sections/notice-bar.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{% style %}
:root {
Expand Down
2 changes: 1 addition & 1 deletion themes/meraki/sections/product-reviews.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ 'notice-bar.css' | asset_url | stylesheet_tag }}
{{ 'notice-bar.css' | asset_url | preload_tag }}

{%- assign selected_product = section.settings.product %}

Expand Down
4 changes: 2 additions & 2 deletions themes/meraki/snippets/head-config.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
const ratings = "{{ 'reviews.ratings' | t }}";
{% endjavascript %}

{{ 'main.css' | asset_url | stylesheet_tag }}
{{ 'utils.css' | asset_url | stylesheet_tag }}
{{ 'main.css' | asset_url | preload_tag }}
{{ 'utils.css' | asset_url | preload_tag }}

{% assign store_title = store.title | default: store.name %}

Expand Down

0 comments on commit 504d15b

Please sign in to comment.