Date post: | 16-Apr-2017 |
Category: |
Technology |
Upload: | ronan-berder |
View: | 330 times |
Download: | 0 times |
How click-baity is that?
13 steps to a faster Jekyll website
Loads quickly (PageSpeed Insights)Generates quickly (--profile)
Fast you said?
Have an asset pipelineGrunt, Gulp.js… take your pick
Step 2
CSS inlined in the headerJS at the end of the body
Step 3
Avoid blocking CSS/JSGood example is @font-face
Step 4
Use a CDNCloudFlare is a (free) no-brainer
Step 5
Enable gzip & browser cachingOut-of-the box with CloudFlare
Step 6
Enable SSLWith CloudFlare (& force redirect)
Step 7
Avoid loops & use variablese.g. the author loop on each post
Step 10
Generate only the latest postJust using --limit_posts 1
Step 11
Ignore stuff with “_” or _config.ymlGreat to handle media separately
Step 12
Incremental builds (--incremental)For Jekyll 3 (on GitHub pages)
Step 13
Slides & notes: wiredcraft.com/blog/make-jekyll-fast