Skip to content

Commit

Permalink
Merge pull request rails#31838 from bogdanvlviv/fix-value-of-as-attri…
Browse files Browse the repository at this point in the history
…bute-for-link-type-preload

Fix `as` attribute value for preload link

[Eileen M. Uchitelle & bogdanvlviv]
  • Loading branch information
eileencodes authored and bogdanvlviv committed Jan 31, 2018
1 parent e0bcf7d commit a9c741c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/asset_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def stylesheet_link_tag(*sources)

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",
Expand Down

0 comments on commit a9c741c

Please sign in to comment.