From b1cdd318582c7859f1ff74c0f78ecb4fecefba82 Mon Sep 17 00:00:00 2001 From: Kaelig Date: Mon, 12 Apr 2021 14:10:01 -0700 Subject: [PATCH] Only output media attribute if needed, delete redundant type attribute in stylesheet_tag --- performance/shopify/shop_filter.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/performance/shopify/shop_filter.rb b/performance/shopify/shop_filter.rb index 110b0d3..b65f86c 100644 --- a/performance/shopify/shop_filter.rb +++ b/performance/shopify/shop_filter.rb @@ -18,7 +18,11 @@ module ShopFilter end def stylesheet_tag(url, media = "all") - %() + html = [] + html << %(" + html.join(" ") end def link_to(link, url, title = "")