From a109b9f06a46aa266ae4bdd03c4a821278b512b8 Mon Sep 17 00:00:00 2001 From: Aashish Saini Date: Thu, 9 Nov 2023 19:52:16 +0530 Subject: [PATCH] Add missing preload_link_tag in ActionView helper guide --- guides/source/action_view_helpers.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guides/source/action_view_helpers.md b/guides/source/action_view_helpers.md index bc25ef8ff81..ce58262a732 100644 --- a/guides/source/action_view_helpers.md +++ b/guides/source/action_view_helpers.md @@ -99,6 +99,15 @@ javascript_url "common" # => http://www.example.com/assets/common.js ``` +#### preload_link_tag + +Returns a link tag that browsers can use to preload the source. The source can be the path of a resource managed by asset pipeline, a full path, or an URI. + +```ruby +preload_link_tag "application.css" +# => +``` + #### stylesheet_link_tag Returns a stylesheet link tag for the sources specified as arguments. If you don't specify an extension, `.css` will be appended automatically.