Skip to content

Commit e191a05

Browse files
cbrandtbuffalosunnavy
authored andcommitted
Enable lazy load for the Investigations part of the create page
Incident create shows Incident and Investigation sections so both can be created at once. Set the lower Investigation section to lazy load since it will always load below the fold. It will then load the components only when the user scrolls down. This reduces the burst of requests from the Incident create page by half on the initial load.
1 parent bdd445d commit e191a05

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

html/Callbacks/RTIR/Ticket/Create.html/AfterShowWidgets

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@
5353
<div id="ticket-create-investigation" data-name-prefix="Investigation">
5454
<&| /Widgets/TitleBox, title => RT::IR::TicketType( Lifecycle => 'investigations' ) &>
5555
<& /Elements/ShowWidgets,
56-
Object => $InvestigationsQueueObj,
57-
Page => 'Create',
58-
ARGSRef => {
56+
Object => $InvestigationsQueueObj,
57+
Page => 'Create',
58+
LazyLoad => 1,
59+
ARGSRef => {
5960
Queue => $InvestigationsQueueObj->Id,
6061
SelectIncident => 0,
6162
AddAttachments => 0,

0 commit comments

Comments
 (0)