JSFiddle - React, Tailwind, and code Playground

by Spencer Smith

JavaScript

const url = (index) => {
	const pad = ('000' + index).substr(-4);
	return `https://photonetwork.blob.core.windows.net/events/2711/27117806/00024/${pad}.jpg`;
};

const wrap = document.createElement('div');

for (let i = 1; i < 450; i++) {
  const img = document.createElement('img');
  img.setAttribute('loading', 'lazy');
  img.src = url(i);
  img.height = "500";
  wrap.appendChild(img);
}

document.body.appendChild(wrap);