Skip to content

Commit

Permalink
make the ontology viewer load the sections only if visited
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jan 10, 2025
1 parent b5989b0 commit 6ab8354
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 6ab8354

Please sign in to comment.