Skip to content

Commit 1e705c0

Browse files
authored
Merge pull request #8 from dimeloper/feature/further-optimize-grid-images
Further optimize grid images.
2 parents e154102 + 2acfdd2 commit 1e705c0

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/app/components/banner-grid/banner-grid.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,37 +29,37 @@ export class BannerGridComponent {
2929
public pokemons = [
3030
{
3131
title: 'Blastoise',
32-
image: '/assets/cms2/img/pokedex/full/009.png',
32+
image: '/assets/cms2/img/pokedex/detail/009.png',
3333
preview:
3434
'It deliberately increases its body weight so it can withstand the recoil of the water jets it fires.',
3535
},
3636
{
3737
title: 'Charizard',
38-
image: '/assets/cms2/img/pokedex/full/006.png',
38+
image: '/assets/cms2/img/pokedex/detail/006.png',
3939
preview:
4040
'If Charizard becomes truly angered, the flame at the tip of its tail burns in a light blue shade.',
4141
},
4242
{
4343
title: 'Venusaur',
44-
image: '/assets/cms2/img/pokedex/full/003.png',
44+
image: '/assets/cms2/img/pokedex/detail/003.png',
4545
preview:
4646
'While it basks in the sun, it can convert light into energy and it is more powerful in the sun.',
4747
},
4848
{
4949
title: 'Blastoise',
50-
image: '/assets/cms2/img/pokedex/full/009.png',
50+
image: '/assets/cms2/img/pokedex/detail/009.png',
5151
preview:
5252
'It deliberately increases its body weight so it can withstand the recoil of the water jets it fires.',
5353
},
5454
{
5555
title: 'Charizard',
56-
image: '/assets/cms2/img/pokedex/full/006.png',
56+
image: '/assets/cms2/img/pokedex/detail/006.png',
5757
preview:
5858
'If Charizard becomes truly angered, the flame at the tip of its tail burns in a light blue shade.',
5959
},
6060
{
6161
title: 'Venusaur',
62-
image: '/assets/cms2/img/pokedex/full/003.png',
62+
image: '/assets/cms2/img/pokedex/detail/003.png',
6363
preview:
6464
'While it basks in the sun, it can convert light into energy and it is more powerful in the sun.',
6565
},

src/app/pages-optimized/pokedex-optimized/pokedex.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
priority
1313
alt="Pokemon Banner with Pikachu" />
1414
</div>
15+
1516
<!-- Secondary banners / teasers -->
1617
<app-banner-grid />
1718

1819
<!-- Dynamic content -->
19-
@defer (on viewport) {
20+
@defer (on viewport; prefetch on idle) {
2021
<app-pokemon-list />
2122
} @placeholder {
2223
<b>Favourite Pokemon</b>

0 commit comments

Comments
 (0)