Skip to content

Commit 96da9ee

Browse files
authored
Load main graph first (librenms#20033)
before thumbnail graphs in new graphs viewing page
1 parent fec8f40 commit 96da9ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

resources/views/graphs/show.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class="tw:flex tw:flex-col tw:items-center tw:gap-0.5 tw:p-1 tw:rounded-lg tw:bo
4141
src="{{ route('graph', $thumb['vars']) }}"
4242
width="{{ $thumb['vars']['width'] }}"
4343
height="{{ $thumb['vars']['height'] }}"
44+
fetchpriority="low"
4445
@config('enable_lazy_load') loading="lazy" @endconfig />
4546
</a>
4647
@endforeach
@@ -61,11 +62,11 @@ class="tw:w-full tw:text-center tw:px-3 tw:py-2 tw:border tw:border-gray-300 tw:
6162

6263
<div class="tw:w-full tw:mt-4">
6364
@if ($isDynamicGraph)
64-
<img class="graph graph-image img-responsive tw:w-full tw:h-auto tw:border-0" data-src-template="{{ $dynamicGraphSrcTemplate }}" />
65+
<img class="graph graph-image img-responsive tw:w-full tw:h-auto tw:border-0" data-src-template="{{ $dynamicGraphSrcTemplate }}" fetchpriority="high" />
6566
@else
6667
<img class="graph-image img-responsive tw:w-full tw:h-auto tw:border-0"
6768
src="{{ route('graph', $mainGraphVars) }}"
68-
@config('enable_lazy_load') loading="lazy" @endconfig />
69+
fetchpriority="high" />
6970
@endif
7071
</div>
7172

0 commit comments

Comments
 (0)