app/helpers/asset_helper.rb
def stylesheet_preload_tag( stylesheet, options = {} )

    stylesheet_tag( stylesheet, options.merge({
        rel: :preload,
        as: :style,
        onload: "this.onload=null;this.rel='stylesheet';"
    }))

  end
# Generates a stylesheet preload tag: this is a shortcut onto AssetHelper#stylesheet_tag
#
# === Parameters
#
# [stylesheet] _(string)_ the name of the stylesheet to embed
# [options] _(hash, optional)_ any additional attributes to be passed to the generated LINK tag
Generates a stylesheet preload tag: this is a shortcut onto AssetHelper#stylesheet_tag
Parameters

[stylesheet] _(string)_ the name of the stylesheet to embed
[options] _(hash, optional)_ any additional attributes to be passed to the generated LINK tag
Generates a stylesheet preload tag : this is a shortcut onto AssetHelper#stylesheet_tag Parameters [ stylesheet ] _ ( string ) _ the name of the stylesheet to embed [ options ] _ ( hash optional ) _ any additional attributes to be passed to the generated LINK tag
def stylesheet_preload_tag( stylesheet, options = {} )
    stylesheet_tag( stylesheet, options.merge({
        rel: :preload,
        as: :style,
        onload: "this.onload=null;this.rel='stylesheet';"
    }))
  end
def stylesheet_preload_tag ( stylesheet , options = { } ) stylesheet_tag ( stylesheet , options . merge ( { rel : :preload , as : :style , onload : "this.onload=null;this.rel='stylesheet';" } ) ) end
Generates a stylesheet preload tag: this is a shortcut onto AssetHelper#stylesheet_tag
 Parameters
Generates a stylesheet preload tag : this is a shortcut onto AssetHelper#stylesheet_tag Parameters
stylesheet
options