Hi
I want to try deferring images as in this article https://varvy.com/pagespeed/defer-images.html
but have noy got very far.
I used Gimp to produce an empty, square, small image (97bytes)
I used https://www.base64-image.de/ to produce the required base64 string
iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAIAAAD9b0jDAAAAKElEQVRIx2P8//8/A7UBEwMNwKiho4aOGjpq6Kiho4aOGjpq6OAzFADRYgM18cIRtgAAAABJRU5ErkJggg==
I tried aa few things but can’t quite get it how to use this on the html for each image,
say, I have this image in the html
<img src="../images/ParallelBcn2.jpg" width="200" height="150" alt="Hotel Parallel Barcelona">
The article says the code should be so:
<img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="your-image-here">
so, I assume that I replace the part after base64, with the code I got above
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAIAAAD9b0jDAAAAKElEQVRIx2P8//8/A7UBEwMNwKiho4aOGjpq6Kiho4aOGjpq6OAzFADRYgM18cIRtgAAAABJRU5ErkJggg==" data-src="../images/ParallelBcn2.jpg" width="200" height="150" alt="Hotel Parallel Barcelona">
I placed the script at the bottom, but when I open the page nothing happens…
The test page is here
http://pintotours.net/Europe/Spain/FAKE.html
Am I supposed to amend the script and give it a certain delay in miliseconds?
Thank you
EDIT
Looking at FF WebConsole, the script (which is at the very end of the page) does not seem to load at all…
Could that be the problem?