Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Apr 2024
    Location
    Berlin
    Posts
    3

    Default Re: Image Lazy loading

    Hi Acorn

    Thank you very much for the nice welcome.
    I have the version: Xara Web Designer+ 23.0.68981 SL x64 Apr 3 2024
    Is this sufficient?

    I have jpg images throughout the website that are displayed by a code in the htasses file in webp.
    I hope that doesn't interfere with lazy loading?
    And yes, Xara should have implemented lazy load long ago.
    Others finally did it too.

    Tessi

  2. #12
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,902

    Default Re: Image Lazy loading

    Tessi, your version is more than sufficient.

    You'll have to explain what you mean by JPEGs coded in the .htaccess as WebP.

    If you have ticked the WebP option in Web Properties > Websites > Include WebP images, then Xara publishes both JPEG and WebP so you can picked either as WebP is fully rendered in all major browsers for over three years now. Both filetypes are uploaded but are only used when called so you could pick 'n' mix.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #13
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,936

    Default Re: Image Lazy loading

    Perhaps this Acorn?:

    LINK
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #14
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,902

    Default Re: Image Lazy loading

    Quote Originally Posted by Egg Bramhill View Post
    Perhaps this Acorn?:

    LINK
    Cheers Egg, totally no need for this for Xara rendering checks if the browser supports WebP and handles it from there.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #15
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,936

    Default Re: Image Lazy loading

    No Acorn. In your example file your placeholder specifically calls for a jpg image:

    <img src='index_htm_files/bear.jpg' width=100% height=100% loading='lazy' />
    Therefore it will never load a .webp image, only the bear.jpg image. The script I linked to endeavors to call the webp file if the browser can handle it but if it can't (i.e. Safari) it loads the .jpg equivalent.

    Not that I've got that js script working via .htaccess though
    Last edited by Egg Bramhill; 04 May 2024 at 02:17 AM.
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #16
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,936

    Default Re: Image Lazy loading

    On the issue were you use the default.jpg
    I believe it's pointless having all images lazy loading. You need to have images within the 'above the fold' load normally which is what I've done in my demo. The image tiger.jpg is not lazy loaded and all the others are.

    I find you always need a non-lazy image near the page bottom to stop the first lazy one loading right off.
    I can't understand why you state these images need to be placed at the bottom, it appears to work fine if they are within the 'above the fold' section.

    DEMO
    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #17
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,902

    Default Re: Image Lazy loading

    Quote Originally Posted by Egg Bramhill View Post
    On the issue were you use the default.jpg
    I believe it's pointless having all images lazy loading. You need to have images within the 'above the fold' load normally which is what I've done in my demo. The image tiger.jpg is not lazy loaded and all the others are.
    I can't understand why you state these images need to be placed at the bottom, it appears to work fine if they are within the 'above the fold' section.
    DEMO
    Egg, it may simply have been that I had no "real" images in my design and the web page or Google needed to get its teeth into something.

    Of course, you would never waste processing time having images above the fold lazy loaded.
    If your images are all external (a good thing) then simply remove loading="lazy" from the placeholder <img> code.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •