This repository was archived by the owner on Jan 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +25
-16
lines changed Expand file tree Collapse file tree 6 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
- All changes to Chicio coding will be documented in this file.
2
+ All changes to Chicio Coding will be documented in this file.
3
+
4
+ ## [ 6.3.3] ( https://github.com/chicio/chicio.github.io/releases/tag/v6.3.3 )
5
+ Release date: 2023-09-24
6
+
7
+ #### Fixed
8
+
9
+ - Eager flag for images above the fold
3
10
4
11
## [ 6.3.2] ( https://github.com/chicio/chicio.github.io/releases/tag/v6.3.2 )
5
12
Release date: 2023-09-18
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export const PostAuthors: FC<PostAuthorsProps> = ({
87
87
>
88
88
< PostAuthorImage
89
89
alt = { blogAuthor . name }
90
+ loading = { "eager" }
90
91
image = { blogAuthorImage }
91
92
style = { {
92
93
width : 30 ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const PostCardContainer = styled.div<BigCardProps>`
48
48
}
49
49
` ;
50
50
51
- const PostCardImageContainer = styled ( GatsbyImage ) `
51
+ const PostCardImage = styled ( GatsbyImage ) `
52
52
width: 100%;
53
53
object-fit: cover;
54
54
height: 200px;
@@ -117,9 +117,10 @@ export const PostCard: FC<PostCardProps> = ({
117
117
label : tracking . label . body ,
118
118
} }
119
119
>
120
- < PostCardImageContainer
120
+ < PostCardImage
121
121
alt = { title }
122
122
image = { image }
123
+ loading = { big ? "eager" : "lazy" }
123
124
imgStyle = { {
124
125
borderRadius : "4px 4px 0 0" ,
125
126
} }
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export const BlogHeader: FC = () => (
126
126
< ImageContainer >
127
127
< StaticImage
128
128
src = { "../../../images/blog-logo.jpg" }
129
+ loading = { "eager" }
129
130
alt = { "blog logo" }
130
131
width = { 80 }
131
132
height = { 80 }
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export const ProfilePresentation: FC<ProfilePresentationProps> = ({
64
64
< ProfileImageContainer >
65
65
< StaticImage
66
66
placeholder = { "none" }
67
+ loading = { "eager" }
67
68
imgStyle = { {
68
69
width : "130px" ,
69
70
height : "130px" ,
Original file line number Diff line number Diff line change @@ -13,21 +13,19 @@ import { FC } from "react";
13
13
const BottomIndex = loadable ( ( ) => import ( `../components/bottom-index` ) ) ;
14
14
15
15
const HomePage : FC < PageProps > = ( { location } ) => {
16
- const data = useStaticQuery < Queries . HomePageQuery > (
17
- graphql `
18
- query HomePage {
19
- site {
20
- siteMetadata {
21
- author
22
- featuredImage
23
- }
16
+ const data = useStaticQuery < Queries . HomePageQuery > ( graphql `
17
+ query HomePage {
18
+ site {
19
+ siteMetadata {
20
+ author
21
+ featuredImage
24
22
}
25
23
}
26
- `
27
- ) ;
28
- const siteMetada = data . site ! . siteMetadata ! ;
29
- const author = siteMetada . author ! ;
30
- const featuredImage = siteMetada . featuredImage ! ;
24
+ }
25
+ ` ) ;
26
+ const siteMetadata = data . site ! . siteMetadata ! ;
27
+ const author = siteMetadata . author ! ;
28
+ const featuredImage = siteMetadata . featuredImage ! ;
31
29
32
30
return (
33
31
< ShowcasePageTemplate
You can’t perform that action at this time.
0 commit comments