Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pboivin's avatar
Level 21

PHP image lazy loading toolbox

Hello there,

I regularly use static site generators (like Jigsaw) for prototypes and to work on Blade components in isolation. I find myself doing a lot of manual image management in this context.

I created a little side project to make a simple lazy loading and responsive image toolbox around the Glide (PHP) and vanilla-lazyload (JS) libraries. The focus is very much on prototyping and static site use cases. For anything more, I think a full Glide setup is probably better.

Some features:

  • Transforms images on initial page load — does not expose Glide URLs
  • Generates simple markup for img and picture HTML elements
  • Useable with static site generators and in CLI scripts
  • Framework agnostic — a set of plain PHP classes

I hope this can be useful to someone, and any feedback will be higly apreciated! :)

Main repository: https://github.com/pboivin/flou

Jigsaw demo project: https://github.com/pboivin/flou-jigsaw-demo

0 likes
0 replies

Please or to participate in this conversation.