Welcome to mirror list, hosted at ThFree Co, Russian Federation.

defer_script_tag_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d91c6d52683f69dd0af14f5d734cbc7fbaf87ca6 (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

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