+ Reply to Thread
Results 1 to 3 of 3

Thread: Lazyload into Slider, make new src="imagelink"

  1. #1

    Lazyload into Slider, make new src="imagelink"

    I'm trying to implement lazyload to the slider on homepage but it makes a new src line for the image.

    tpl/blocks/content_slider.tpl
    Code:
    Only registered members can view the code.
    But when looking at the html code i get this.
    Code:
    Only registered members can view the code.
    How come it makes a new src="imagelink"?

    Shouldn't it use the lazyloaded image? Or is it working as intended?
    Last edited by Peter Jonsson; March 30, 2022 at 08:31 AM.
    Classifieds Site: Annonssida
    Other Site: SEO

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,162
    Hello,

    If you mean the data-src attribute that must be this library that adds it

  3. #3
    the data-src is added to the code by me to be able to use lazyload script.

    It creates a whole new src="https://www.site.com/files/slides/963215809.webp"

    I don't know if it supposed to do that or not :/
    Classifieds Site: Annonssida
    Other Site: SEO

+ Reply to Thread