I have migrated a few sites from 7,8 to 9 with Slimsy installed. To still use the JS scripts LazySizes, I've created a simple Partial View that generated the data-srcset attribute and I'm calling it for each image.
Sorry for the late reply but the good news is we released Slimsy v4 for Umbraco v10! We decided to skip a version for v9 due as due to the lack of webp support. I hope it works for you!
Slimsy needed for Umbraco 9?
Hi Jeavon,
is Slimsy still useful for Umbraco 9, or are there new techniques in place to make it obsolete? WIll there be a Slimsy version for Umbraco 9?
Kind regards! Mikael
Hi Mikael,
I have migrated a few sites from 7,8 to 9 with Slimsy installed. To still use the JS scripts LazySizes, I've created a simple Partial View that generated the
data-srcset
attribute and I'm calling it for each image.https://gist.github.com/mrflo/bdeab0aa9398bc3aa6fe9958a0ea0853
Another option is to use the browser to choose the right image and remove all the scripts and create your own
<picture>
tag and<source>
tags with different sizes like done here: https://gist.github.com/brendan-rice/b3b160d5dd7bb6b7ea9dd476906e5601Sorry for the late reply but the good news is we released Slimsy v4 for Umbraco v10! We decided to skip a version for v9 due as due to the lack of webp support. I hope it works for you!
Nice, well done👍
is working on a reply...