4 ms·
Regarding the time it takes to build the site - is everything rebuilt every time in Jekyll? You'd think there would be some sort of dependency build tree ala m
by zdw 15y ago
Regarding the time it takes to build the site - is everything rebuilt every time in Jekyll?
You'd think there would be some sort of dependency build tree ala make/rake so only items whose source components would need to be rebuilt (which, in some cases could be the whole site).
- brandontreb 15y agoIt has to regenerate the entire site each time. I guess the reason for this might be because it can't be sure every page is updated otherwise. Take for example adding a new post and you have a "recent posts" widget in your sidebar. This affects every page on the site and therefore it must be rebuilt.
- LiveTheDream 15y agoRecent posts should just be loaded dynamically via javascript, the same way recent tweets are loaded.
- seabee 15y agoIs parsing a page template on the server and including a 'recent posts' snippet really so challenging that it justifies every client doing another HTTP request for that very same snippet?
- mhd 15y agoDependencies are hard to figure out automatically and a bit of a nuisance if you'd have to declare whether every plugin/script use has dynamic side effects. Considering that jekyll is a pretty small (and somewhat opinionated) system by default, it probably wasn't considered worth the effort. And once you approach the level of a more typical WordPress site in both volume and information per page, I'm not sure how much effort you'd save. It's probably better to investigate how to make the general run time a bit faster. (Although it would probably be possible to have mostly static pages with few dependencies, then make the dynamic/dependent changes via a minimal web service and AJAX. At least when the load is too much for that, you'd still see the static content. Wouldn't be as generic/small as jekyll then, though.)