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
module AsyncScriptTagHelper
# Override the default ActionView `javascript_include_tag` helper to support page specific async-loading
module DeferScriptTagHelper
# Override the default ActionView `javascript_include_tag` helper to support page specific deferred loading
def javascript_include_tag(source, options = {})
options = options.symbolize_keys
Loading