Published: April 21, 2021
Reading Time: 1 mins
A great tip for speeding up the build time of your Jekyll blog is to make use of the incremental regeneration feature.
This process will only generate the pages that were updated since the last build as opposed to re-generating all pages with each build.
While this sounds like a fix-all solution in theory, in practice a word of caution is advised when using this feature.
As described on the Jekyll website, incremental regeneration is an experimental feature at the time of writing this.
Don’t expect it to work flawlessly every time.
For example, I noted that my homepage never updated even though it shows my latest posts.
As the actual code of the homepage was rarely updated, it wasn’t updated to include the latest posts.
The workaround was to manually update the homepage, save, then rebuild.
Something like this can become tedious over time so just be aware this feature has some limitations.
Anyway, with all of that out of the way, let’s look at how to implement incremental regeneration to speed up build times.
There are 2 ways to do this:
Here’s the command:
bundle exec jekyll serve --incremental
Add this line to your _config.yml file:
Here are some more articles you might like to read next:
Design Insight is a weekly newsletter filled with design resources, tips, and insights to make you a better designer. It's sent directly to your inbox every Friday.
Click the button below to go to the Design Insight newsletter and sign up.