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.
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.