Skip to content

Commit

Permalink
Merge branch 'feauture/disable-eager-loiding-in-production' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Jan 13, 2025
2 parents 7bed61f + 12a62e8 commit 56ad0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/ontologies_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def lazy_load_section(section_title, &block)
block.call
else
render TurboFrameComponent.new(id: section_title, src: "/ontologies/#{@ontology.acronym}?p=#{section_title}",
loading: Rails.env.development? ? "lazy" : "eager",
loading: "lazy",
target: '_top', data: { "turbo-frame-target": "frame" })
end
end
Expand Down

0 comments on commit 56ad0fc

Please sign in to comment.