clhenrick / portfolio

Portfolio and blog using Jekyll with the Feeling Responsive theme created by @Phlow
http://clhenrick.io/
MIT License
12 stars 4 forks source link

use lazy loading for images in blog posts and pages #9

Closed clhenrick closed 7 years ago

clhenrick commented 7 years ago

To make page loads a little faster, especially for pages with lots of images.

The site already uses jQuery so implementing the lazy loading plugin should be easy enough.

May need to edit _data/portfolio.hbs to include a class for images that will be lazy loaded, but using a class will mean I won't be able to use the markdown image syntax in blog posts (![some image](some-image.jpg)) as there isn't a way to add a class name. Could just write straight HTML like <img src="some-image.jpg"> but that feels more cumbersome.