You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.
TL/DR plan of attack: relegate Jekyll to Markdown parsing and building HTML and leave assets (CSS, JS, images, and fonts) to Gulp (or equivalent task runner).
Replace jekyll-picture-tag with Gulp task.
Replace jekyll-assets with Gulp tasks.
Automate critical path CSS generation.
Replace layout: compress with Gulp minify task.
Replace Rake deploy tasks with Gulp.
The time to jekyll build and deploy the site has gotten out of hand the last couple of years. Test disabling various build tasks and plugins to determine offenders and investigate removing the dependency or developing a lighter weight alternative.
Made Mistakes Jekyll stats as of 8/23/2016:
1,014 source images to be generated into 5 sizes (1600, 1024, 768, 600, and 320 pixels)
List related posts with jekyll-tagging-related_posts, jekyll/tagging, and LSI: true
38.356s
17.867s
List related posts with vanilla related_posts
1.649s
4.899s
Preprocess, concatenate, minify, and cache bust SCSS and JS with jekyll-assets
78.751s
25.031s
Display masthead and overlay menu from _data
9.656s
7.815s
List post comments from _data
7.103s
2.216s
Display colophon from _data
0.2s
0.486s
List post taxonomy metadata
3.479s
1.182s
List post breadcrumb links
2.834s
1.029s
List featured posts
0.195s
0.439s
Build style guide collection
1.161s
0.314s
List post social sharing links
5.092s
0.973s
Worst case offenders appear to be resizing large amounts of images, copying images from source to destination, and building the site.
Decoupling asset generation tasks from main Jekyll build so they don't trigger a rebuild each time they are updated should help with development build times. Browsersync can also come to the rescue injecting updated CSS/JS to circumvent the entire Jekyll build process.
Jekyll build times comparison:
build type
Jekyll + plugins
Jekyll Gulpified
clean build (Mac OS)
26.01 min
14 min
clean build (Windows)
26.31 min
17 min
build with images already resized (Mac OS)
2.21 min
1.58 min
build with images already resized (Win)
5.23 min
4.17 min
The text was updated successfully, but these errors were encountered:
* gulpify: (23 commits)
Update README
Add `gulp icons` task to optimize and combine SVG icons into a single file for inlining
Add back .page__hero-image for forcing image to fill parent container
Add submit sitemap XML file to Google/Bing task
Add `async` attribute to index.js
Fix bad Markdown
Disable duplicate Rsync progress output
Adjust minification settings
Fix missing .ext from feature image srcset paths
Copy .htaccess to `dist`
Move into src
Move files in src
Revise Rsync task to match old Rake task
Add srcset attributes to feed entry feature images
Escape commenter name
Remove picturefill script
Improve image tasks
Import missing SCSS partials into style.scss
Update image paths
Upscale responsive images when resizing
...
ref #49
TL/DR plan of attack: relegate Jekyll to Markdown parsing and building HTML and leave assets (CSS, JS, images, and fonts) to Gulp (or equivalent task runner).
jekyll-picture-tag
with Gulp task.jekyll-assets
with Gulp tasks.layout: compress
with Gulp minify task.The time to
jekyll build
and deploy the site has gotten out of hand the last couple of years. Test disabling various build tasks and plugins to determine offenders and investigate removing the dependency or developing a lighter weight alternative.Made Mistakes Jekyll stats as of 8/23/2016:
.yml
Windows Test System:
Mac Test System:
-- ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]
Initial build:
bundle exec jekyll clean
. Verify_site
,.asset-cache
, and any other.tmp
folders and files have been removed.To test build tasks, disable or remove from source and compute average time of 3 builds using
bundle exec jekyll --profile
.page.image.feature
photoslayout: compress
/images/
and copy to_site/
sort_tag
filterLSI: true
related_posts
Worst case offenders appear to be resizing large amounts of images, copying images from
source
todestination
, and building the site.Decoupling asset generation tasks from main Jekyll build so they don't trigger a rebuild each time they are updated should help with development build times. Browsersync can also come to the rescue injecting updated CSS/JS to circumvent the entire Jekyll build process.
Jekyll build times comparison:
The text was updated successfully, but these errors were encountered: