Skip to content
Snippets Groups Projects

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

6 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -4,7 +4,9 @@ module AsyncScriptTagHelper
def javascript_include_tag(source, options = {})
options = options.symbolize_keys
options[:defer] = "defer"
if @page_defer_javascript
options[:defer] = "defer"
end
super(source, options)
end
Loading