Example: Lazy loading without a heavy framework
This is an example site to demonstrate how to create your own lazy loading. It uses Netlify Large Media for managing source image assets and serving image transformations on-the-fly to populate different source images in picture elements.
To build the site you need:
# clone this repository git clone firstname.lastname@example.org:philhawksworth/rollyourownlazyload.git # go to the working directory cd rollyourownlazyload # install dependencies yarn # start a local build server with hot reloading and Netlify redirects proxying netlify dev
Configuring your own Netlify Large Media workflow
After cloning this repo, you can set it up as a site of your own on Netlify, and configure the Netlify Large Media pipeline by following the guidance in the docs