progressive image rendering
-
Hi,
this is more of a question: How is image rendering handled in Lay Theme? Besides lazyloading, there seems to be a JS function that only displays the images, once they are fully loaded. Is that correct?
With Jpeg and now with JpegXL progressive loading is speeding up the loading times. Especially with JpegXL you can get a high quality preview at 100kB and the rest of the file is then progressively loaded in. Is there an option to enable the display of images before they are fully loaded?
Thanks
-
there seems to be a JS function that only displays the images, once they are fully loaded. Is that correct?
hey yes that is correct. it just sets opacity: 0; to opacity: 1; once an image is loaded
Is there an option to enable the display of images before they are fully loaded?
yes, you can use custom css:
.col img.setsizes{ opacity: 1!important; } .col img.lay-gif{ opacity: 1!important; } .col img.lay-image-original{ opacity: 1!important; } .col img.carousel-img{ opacity: 1!important; } .background-image img.setsizes{ opacity: 1!important; } .background-image img.lay-gif{ opacity: 1!important; } .background-image img.lay-image-original{ opacity: 1!important; } #search-results-region img.setsizes{ opacity: 1!important; } #search-results-region img.lay-gif{ opacity: 1!important; } #search-results-region img.lay-image-original{ opacity: 1!important; } #search-results-region img.carousel-img{ opacity: 1!important; } #search-results-region video.video-lazyload{ opacity: 1!important; } -
look, there is this article too
-
if u upload jpgs that have this JpegXL format, i think you may need to enable "never show resized versions of images" in lay options
because otherwise, resized versions are used to show images based on their width in the layout
and these resized versions are versions generated by wordpress. these resized versions are probably just normal jpegs.
wordpress uses imagick or sth in the background to resize jpegs, not sure if that keeps the jpgxl
u may be able to find a plugin for this
-
-
thx for u too!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login