Skip to content

Instantly share code, notes, and snippets.

Avatar

Solomon Alozie kingsolomon17

View GitHub Profile
@kingsolomon17
kingsolomon17 / index.pug
Created Sep 11, 2020
Responsive Lazy Load Images Oldschool
View index.pug
h1 Works in every browser
.gallery
.image
img.lazy-image(data-src="https://source.unsplash.com/random/" + Math.floor(600 + Math.random() * 100))
.image
img.lazy-image(data-src="https://source.unsplash.com/random/" + Math.floor(600 + Math.random() * 100))
.image.image--big
img.lazy-image(data-src="https://source.unsplash.com/random/" + Math.floor(600 + Math.random() * 100))
.image