aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-01-31 13:02:47 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-01-31 13:08:50 +0200
commit689da12082f5223388a96c1324f029e94188d70b (patch)
tree55e56017a5b53a3c642cdcb7074b1da60ee32268 /actionview/lib/action_view
parent2ea5b8f0578b2ec35881c8b01e6e18aed7e38edc (diff)
downloadrails-689da12082f5223388a96c1324f029e94188d70b.tar.gz
rails-689da12082f5223388a96c1324f029e94188d70b.tar.bz2
rails-689da12082f5223388a96c1324f029e94188d70b.zip
Fix `as` attribute value for preload link
`as` attribute value should be `style` for stylesheet preload link See https://w3c.github.io/preload/#as-attribute
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/asset_tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb
index 16def9837e..76b1c3fb6e 100644
--- a/actionview/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb
@@ -133,7 +133,7 @@ module ActionView
sources_tags = sources.uniq.map { |source|
href = path_to_stylesheet(source, path_options)
- early_hints_links << "<#{href}>; rel=preload; as=stylesheet"
+ early_hints_links << "<#{href}>; rel=preload; as=style"
tag_options = {
"rel" => "stylesheet",
"media" => "screen",