File tree Expand file tree Collapse file tree
src/webapp/src/app/shared/exercise-grid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ <h3>Error</h3>
5757 < p > {{ error() }}</ p >
5858 </ div >
5959 } @else {
60- @for (exercise of exercises(); track exercise.id) {
60+ @for (exercise of exercises(); track exercise.id; let i = $index ) {
6161 < mat-card class ="exercise-card ">
6262 < a [routerLink] ="['/english-writing-exercise', exercise.id] " class ="exercise-card-link ">
6363 <!-- Thumbnail -->
@@ -70,9 +70,8 @@ <h3>Error</h3>
7070 fill
7171 (error) ="onOptimizedImageError(exercise.id) "
7272 [alt] ="'Thumbnail for ' + exercise.title + ' - ' + exercise.level + ' level ' + exercise.topic + ' exercise' "
73- loading ="lazy "
74- decoding ="async "
75- fetchpriority ="auto "/>
73+ [priority] ="!maxItems && i === 0 "
74+ decoding ="async "/>
7675 } @else {
7776 < div class ="exercise-placeholder ">
7877 < mat-icon > article</ mat-icon >
You can’t perform that action at this time.
0 commit comments