Show HN: The smallest and most narcissistic image lazyloading JavaScript library
lazy.simon-frey.eu
lazy.simon-frey.eu
It is build with JavaScript intersection observers. To keep it below 500 byte it currently only works with img tags, but I may adapt it for more HTML tags if that is useful.
I do not plan to add a lot of config options, as there are nice highly configurable lazy loading libraries out there. Mine should just be a script include and you are done :D
`data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><style>svg{background: grey;}</style></svg>`
And don't bother with the color there, just set a background-color on all IMG elements in CSS, the svg will be transparent.