jekyll / jekyll-avatar

A Jekyll plugin for rendering GitHub avatars
MIT License
89 stars 9 forks source link

lazy image loading support #15

Closed afeld closed 6 years ago

afeld commented 6 years ago

I am a frequent visitor to https://government.github.com/community/, which uses this plugin to display the avatars. The page takes 6.7 seconds to load on my relatively fast connection/machine, because there are 1065 images being requested.

In short, it would be great for jekyll-avatar to support lazy image loading. I've looked at a few plugins, and they all use the image URL in a data-src attribute (rather than src). Open to a pull request to support that?

cc @jbjonesjr

benbalter commented 6 years ago

@afeld 👍, so long as there's a fallback if the javascript library isn't loaded.