Skip to content

Commit 69a48b4

Browse files
authored
Merge pull request #76 from Codebrahma/website-perf-improvements
Website perf improvements
2 parents 624257d + 36413e5 commit 69a48b4

File tree

14 files changed

+18526
-37
lines changed

14 files changed

+18526
-37
lines changed

font-preload-cache.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
siteUrl: `https://codebrahma.com`
1111
},
1212
plugins: [
13+
`gatsby-plugin-preload-fonts`,
1314
`gatsby-plugin-react-helmet`,
1415
{
1516
resolve: `gatsby-plugin-react-helmet-canonical-urls`,

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"gatsby-plugin-mdx": "^1.0.56",
2323
"gatsby-plugin-netlify": "^2.1.3",
2424
"gatsby-plugin-offline": "^2.1.1",
25+
"gatsby-plugin-preload-fonts": "^2.5.0",
2526
"gatsby-plugin-react-helmet": "^3.0.12",
2627
"gatsby-plugin-react-helmet-canonical-urls": "^1.2.0",
2728
"gatsby-plugin-sharp": "^2.1.3",
@@ -60,6 +61,7 @@
6061
"serve": "gatsby serve",
6162
"docz:dev": "docz dev",
6263
"docz:build": "docz build",
63-
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
64+
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"",
65+
"preload-fonts": "gatsby-preload-fonts"
6466
}
6567
}
Loading

src/components/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Image = () => (
2020
placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
2121
childImageSharp {
2222
fluid(maxWidth: 300) {
23-
...GatsbyImageSharpFluid
23+
...GatsbyImageSharpFluid_withWebp_noBase64
2424
}
2525
}
2626
}

src/components/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const RipplingProject = () => {
1010
) {
1111
childImageSharp {
1212
fluid(maxWidth: 500, quality: 100) {
13-
...GatsbyImageSharpFluid
13+
...GatsbyImageSharpFluid_withWebp_noBase64
1414
presentationWidth
1515
}
1616
}

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const query = graphql`
139139
) {
140140
childImageSharp {
141141
fluid(maxWidth: 550, quality: 100) {
142-
...GatsbyImageSharpFluid
142+
...GatsbyImageSharpFluid_withWebp_noBase64
143143
presentationWidth
144144
}
145145
}
@@ -151,7 +151,7 @@ export const query = graphql`
151151
) {
152152
childImageSharp {
153153
fluid(maxWidth: 550, quality: 100) {
154-
...GatsbyImageSharpFluid
154+
...GatsbyImageSharpFluid_withWebp_noBase64
155155
presentationWidth
156156
}
157157
}

src/pages/open-source-contributions.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ export const query = graphql`
166166
serverless: file(relativePath: { eq: "open-source/serverless.png" }) {
167167
childImageSharp {
168168
fixed(width: 48, height: 48) {
169-
...GatsbyImageSharpFixed
169+
...GatsbyImageSharpFixed_withWebp_noBase64
170170
}
171171
}
172172
publicURL
173173
}
174174
multiSelect: file(relativePath: { eq: "open-source/multi-select.png" }) {
175175
childImageSharp {
176176
fixed(width: 60, height: 60) {
177-
...GatsbyImageSharpFixed
177+
...GatsbyImageSharpFixed_withWebp_noBase64
178178
}
179179
}
180180
publicURL
@@ -184,47 +184,47 @@ export const query = graphql`
184184
) {
185185
childImageSharp {
186186
fixed(width: 64, height: 64) {
187-
...GatsbyImageSharpFixed
187+
...GatsbyImageSharpFixed_withWebp_noBase64
188188
}
189189
}
190190
publicURL
191191
}
192192
reactForms: file(relativePath: { eq: "open-source/react-forms.png" }) {
193193
childImageSharp {
194194
fixed(width: 80, height: 35) {
195-
...GatsbyImageSharpFixed
195+
...GatsbyImageSharpFixed_withWebp_noBase64
196196
}
197197
}
198198
publicURL
199199
}
200200
liteUi: file(relativePath: { eq: "open-source/react-lite-ui.png" }) {
201201
childImageSharp {
202202
fixed(width: 60, height: 64) {
203-
...GatsbyImageSharpFixed
203+
...GatsbyImageSharpFixed_withWebp_noBase64
204204
}
205205
}
206206
publicURL
207207
}
208208
reduxAction: file(relativePath: { eq: "open-source/redux-action.png" }) {
209209
childImageSharp {
210210
fixed(width: 80, height: 80) {
211-
...GatsbyImageSharpFixed
211+
...GatsbyImageSharpFixed_withWebp_noBase64
212212
}
213213
}
214214
publicURL
215215
}
216216
csvToGraphql: file(relativePath: { eq: "open-source/csv-graphql.png" }) {
217217
childImageSharp {
218218
fixed(width: 100, height: 40) {
219-
...GatsbyImageSharpFixed
219+
...GatsbyImageSharpFixed_withWebp_noBase64
220220
}
221221
}
222222
publicURL
223223
}
224224
gatsbyBlog: file(relativePath: { eq: "open-source/gatsby-blog.png" }) {
225225
childImageSharp {
226226
fixed(width: 66, height: 64) {
227-
...GatsbyImageSharpFixed
227+
...GatsbyImageSharpFixed_withWebp_noBase64
228228
}
229229
}
230230
publicURL
@@ -233,7 +233,7 @@ export const query = graphql`
233233
menubar: file(relativePath: { eq: "open-source/menu-bar.png" }) {
234234
childImageSharp {
235235
fixed(width: 65, height: 65) {
236-
...GatsbyImageSharpFixed
236+
...GatsbyImageSharpFixed_withWebp_noBase64
237237
}
238238
}
239239
publicURL
@@ -244,7 +244,7 @@ export const query = graphql`
244244
) {
245245
childImageSharp {
246246
fixed(width: 64, height: 50) {
247-
...GatsbyImageSharpFixed
247+
...GatsbyImageSharpFixed_withWebp_noBase64
248248
}
249249
}
250250
publicURL
@@ -253,7 +253,7 @@ export const query = graphql`
253253
flexibleSlidingMenu: file(relativePath: { eq: "open-source/react-flexible-sliding-menu.png" }) {
254254
childImageSharp {
255255
fixed(height: 95, width: 68) {
256-
...GatsbyImageSharpFixed
256+
...GatsbyImageSharpFixed_withWebp_noBase64
257257
}
258258
}
259259
publicURL
@@ -262,7 +262,7 @@ export const query = graphql`
262262
multiLevelSelector: file(relativePath: { eq: "open-source/multi-level-selector.png" }) {
263263
childImageSharp {
264264
fixed(height: 54, width: 80) {
265-
...GatsbyImageSharpFixed
265+
...GatsbyImageSharpFixed_withWebp_noBase64
266266
}
267267
}
268268
publicURL
@@ -271,7 +271,7 @@ export const query = graphql`
271271
reactStatelessModal: file(relativePath: { eq: "open-source/react-stateless-modal.png" }) {
272272
childImageSharp {
273273
fixed(height: 70, width: 70) {
274-
...GatsbyImageSharpFixed
274+
...GatsbyImageSharpFixed_withWebp_noBase64
275275
}
276276
}
277277
publicURL

src/pages/solutions.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,50 +135,50 @@ export const query = graphql`
135135
angularLogo: file(relativePath: { eq: "logos/angular.png" }) {
136136
childImageSharp {
137137
fixed(width: 128, height: 128) {
138-
...GatsbyImageSharpFixed
138+
...GatsbyImageSharpFixed_withWebp_noBase64
139139
}
140140
}
141141
}
142142
financeLogo: file(relativePath: { eq: "logos/finance.png" }) {
143143
childImageSharp {
144144
fixed(width: 128, height: 128) {
145-
...GatsbyImageSharpFixed
145+
...GatsbyImageSharpFixed_withWebp_noBase64
146146
}
147147
}
148148
}
149149
nodejsLogo: file(relativePath: { eq: "logos/nodejs.png" }) {
150150
childImageSharp {
151151
fixed(width: 128, height: 128) {
152-
...GatsbyImageSharpFixed
152+
...GatsbyImageSharpFixed_withWebp_noBase64
153153
}
154154
}
155155
}
156156
pwaLogo: file(relativePath: { eq: "logos/pwa.png" }) {
157157
childImageSharp {
158158
fixed(width: 128, height: 128) {
159-
...GatsbyImageSharpFixed
159+
...GatsbyImageSharpFixed_withWebp_noBase64
160160
}
161161
}
162162
}
163163
railsLogo: file(relativePath: { eq: "logos/rails.png" }) {
164164
childImageSharp {
165165
fixed(width: 128, height: 128) {
166-
...GatsbyImageSharpFixed
166+
...GatsbyImageSharpFixed_withWebp_noBase64
167167
}
168168
}
169169
}
170170
reactLogo: file(relativePath: { eq: "logos/react-colored.png" }) {
171171
childImageSharp {
172172
fixed(width: 128, height: 128) {
173-
...GatsbyImageSharpFixed
173+
...GatsbyImageSharpFixed_withWebp_noBase64
174174
}
175175
}
176176
publicURL
177177
}
178178
serverlessLogo: file(relativePath: { eq: "logos/serverless.png" }) {
179179
childImageSharp {
180180
fixed(width: 128, height: 128) {
181-
...GatsbyImageSharpFixed
181+
...GatsbyImageSharpFixed_withWebp_noBase64
182182
}
183183
}
184184
}

src/pages/work.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const query = graphql`
8080
) {
8181
childImageSharp {
8282
fluid(maxWidth: 500, quality: 100) {
83-
...GatsbyImageSharpFluid
83+
...GatsbyImageSharpFluid_withWebp_noBase64
8484
presentationWidth
8585
}
8686
}
@@ -90,7 +90,7 @@ export const query = graphql`
9090
) {
9191
childImageSharp {
9292
fluid(maxWidth: 500, quality: 100) {
93-
...GatsbyImageSharpFluid
93+
...GatsbyImageSharpFluid_withWebp_noBase64
9494
presentationWidth
9595
}
9696
}
@@ -101,7 +101,7 @@ export const query = graphql`
101101
) {
102102
childImageSharp {
103103
fluid(maxWidth: 500, quality: 100) {
104-
...GatsbyImageSharpFluid
104+
...GatsbyImageSharpFluid_withWebp_noBase64
105105
presentationWidth
106106
}
107107
}

0 commit comments

Comments
 (0)