Skip to content

Commit

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

Fix `as` attribute value for preload link
  • Loading branch information
eileencodes committed Jan 31, 2018
2 parents 2ea5b8f + 689da12 commit 8a05dff
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 8a05dff

Please sign in to comment.