Skip to content
Snippets Groups Projects

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

1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 6
0
module DeferScriptTagHelper
# Override the default ActionView `javascript_include_tag` helper to support page specific deferred loading
def javascript_include_tag(*sources)
super(*sources, defer: true)
end
end
Loading