è l'immagine che lo fa, non PHP o javascript.

Sono le JPG progressive