Skip to content
Snippets Groups Projects

Resolve "Specific Async Script Loading by using a Page Variable"

1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
module AsyncScriptTagHelper
# Override the default ActionView `javascript_include_tag` helper to support page specific async-loading
def javascript_include_tag(source, options = {})
options = options.symbolize_keys
options[:defer] = "defer"
super(source, options)
end
end
Loading