Defer Image Loading Script
Bootstrap Snippets Library /
Images Examples
If you have large images in a carousel, it would be a good idea to defer loading them to speed up your page load time. This scripts adds a base 64 image placheholder in the html and then uses javascript to replace that with the actual image source. So the document loads and then loads in the images.