You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#111628 Joomla 4, images are not loading Lazy with loading="lazy" in img tag

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Monday, 08 August 2022 15:44 BST

omd123
Hello,
I put the loading="lazy" in the img tag, but the images are not loading lazy.
Is there something I should do? I am using the 2.9.28 JCE editor Pro.

Thanks,
Steph

Ryan
I put the loading="lazy" in the img tag, but the images are not loading lazy.


Lazy loading will defer loading of images that are off-screen until the user scrolls near them. What exactly is happening in your case?

Please post a link to an example.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

omd123
It looks like they are already loaded when I scroll. Normaly with a lazy loading you see load the images when you scroll, but now the images are already there.

Ryan
If the img tag includes the loading="lazy" attribute, then the browser will load them correctly. The loading is usually initiated before you see the image, so it may have fully loaded by the time it scrolls into view.

You can use the browser's Web Developer Tools to check the image loading progress.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.