stencila/website

Lazy load/paginate blog entries

Closed this issue · 0 comments

We currently load all blog entries when visiting the Blog index page. Many of them have featured images which add extra load time and data usage, and with our desired schedule of a blog post of every 1-2 weeks, the page is only going to get slower over time.

The current SEO hit isn't terrible, but will only decline as we add more posts.
The page weight is at ~9.5mb right now, which can be significant for mobile/capped data plans.

There are a few technical suggestions outlined in Google Lighthouse report (screenshot below), but this issue is specifically about:

  • adding a library to only load post featured images as needed
  • and/or changing our build step to paginate the results

Screen Shot 2019-05-15 at 12 46 31