Merge pull request #51648 from ksylvest/ksylvest/document-nopush-for-javascript-include-tag-and-stylesheet-include-tag

Document the use of `nopush` for asset tags
This commit is contained in:
Rafael Mendonça França 2024-04-23 16:39:19 -03:00 committed by GitHub
commit c10eb93124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,8 @@ module ActionView
# attribute, which indicates to the browser that the script is meant to
# be executed after the document has been parsed. Additionally, prevents
# sending the Preload Links header.
# * <tt>:nopush</tt> - Specify if the use of server push is not desired
# for the script. Defaults to +true+.
#
# Any other specified options will be treated as HTML attributes for the
# +script+ tag.
@ -168,6 +170,8 @@ module ActionView
# when it is set to true.
# * <tt>:nonce</tt> - When set to true, adds an automatic nonce value if
# you have Content Security Policy enabled.
# * <tt>:nopush</tt> - Specify if the use of server push is not desired
# for the stylesheet. Defaults to +true+.
#
# ==== Examples
#