Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Axel Kleinwort 142 posts 487 karma points c-trib
    Jan 19, 2022 @ 17:29
    Mikael Axel Kleinwort
    1

    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

  • MrFlo 159 posts 403 karma points
    May 29, 2022 @ 10:05
    MrFlo
    0

    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/b3b160d5dd7bb6b7ea9dd476906e5601

  • Jeavon Leopold 3073 posts 13630 karma points MVP 11x admin c-trib
    Aug 04, 2022 @ 16:25
    Jeavon Leopold
    1

    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!

  • MrFlo 159 posts 403 karma points
    Aug 04, 2022 @ 18:46
    MrFlo
    0

    Nice, well done👍

Please Sign in or register to post replies

Write your reply to:

Draft