Hello,
I’m currently using the Newspaper theme (latest version), along with LiteSpeed Cache and Cloudflare, and I’m actively working to optimize page speed, especially improving LCP (Largest Contentful Paint) for better Core Web Vitals scores.
To do this, I need LiteSpeed Cache to handle all lazy loading, while the theme must stay completely passive. Therefore, I’ve disabled the lazy load option in the Newspaper theme settings.
However, even after disabling it, I still see the data-lazyloaded=”1″ attribute on the featured image, and it seems that the theme is still injecting some JavaScript (e.g., td-lazyload.js or inline behavior) responsible for lazy loading.
This is problematic because when the theme’s lazy load is active, Googlebot fails to detect and index images properly, causing a loss in visibility (especially in Google Discover).
My questions:
How can I completely disable any lazy loading script or HTML output from the Newspaper theme (including Composer elements)?
Is there a filter, hook, or function to prevent the theme from adding lazy load markup?
Which components (modules, blocks, featured image logic, etc.) enforce lazy loading regardless of the main theme settings?
I need full control over lazy loading via LiteSpeed Cache to ensure the images load fast and are visible to search engine bots.
Thank you very much for your support.
Best regards,
Antonio
http://www.sport24h.it
Hello Antonio,
Normally the theme panel option should be apply on all image element from our theme https://i.imgur.com/aYfN2E9.png
You can also enable the webp option for block so if you have a plugin to optimize the images and provide the version in webp – this will replace the actual image with the webp one = https://i.imgur.com/NnixX9a.png
Thank you!
Calin,
Thank you for your reply.
I have already disabled the Lazy Load option from the Theme Panel as shown in your screenshot. However, even after doing this, the featured image on my articles still includes attributes like data-lazyloaded=”1″ and data-src, which suggest that lazy loading is still being applied by the theme’s internal JavaScript.
You can verify this directly here:
👉 https://www.sport24h.it/laura-rogora-a-campitello-vince-la-prima-prova-di-coppa-europa-lead/
I am trying to optimize LCP and need the featured image (which is the LCP element) to load immediately, without any lazy loading. Can you please clarify:
Where exactly the script applying data-lazyloaded=”1″ is coming from?
How I can fully disable lazy loading on the featured image only?
Thank you for your support.
Best regards,
Antonio
Hi Antonio,
For me on https://www.sport24h.it/laura-rogora-a-campitello-vince-la-prima-prova-di-coppa-europa-lead/ is no data-lazyloaded=”1″ or data-src in source page https://i.imgur.com/Y2EURGw.png https://i.imgur.com/eiLmrhg.png
Also for featured image on articles you can use a class to exclude them from lazyload (in case you didn’t do this until now).
Thank you!
Hi Calin,
Thank you again for your help.
Even though the lazy load is disabled in the theme panel and no data-lazyloaded or data-src is present in the HTML source (as you confirmed), when I run a PageSpeed test on an article — like this one: https://www.sport24h.it/laura-rogora-a-campitello-vince-la-prima-prova-di-coppa-europa-lead
I see that the featured image is still reported as lazy loaded. It appears with:
(see https://ibb.co/RTBmB3k8)
This image is also marked as the Largest Contentful Paint (LCP) element, and the loading time is above 3.5 seconds.
Could you please help me understand:
– Why is the image still being marked as lazy-loaded?
– Is this due to some remaining control by the theme, or LiteSpeed Cache?
– What would you recommend to optimize LCP, specifically for the featured image in articles, while using your theme?
Thanks again for your time and support,
Antonio
Hi,
I think that you are referring that this problem is on mobile, right? If so I will recommend to edit the single post template using tagDiv Composer and replace the Single Post Featured Image with Single Post Bg Featured Image and set a different image size for mobile device – https://i.imgur.com/0RfCzUj.png – https://i.imgur.com/Klj6vvq.png
I hope this will help!
Ok Calin, now the image loading times have improved. However, in the photo height section, I would like the height to be automatic based on the width of the photo I upload. But if I enter 0 or auto, the images don’t display. What can I do?
Calin
I’m experiencing a problem with the solution you recommended to optimize image loading: unfortunately, the new format prevents (Single Post Bg Featured Image) featured images from appearing in Google News snippets, and this is a significant drawback in terms of CTR and visibility.
I’d like to know if it’s possible to keep the previous format for featured images (or at least a format compatible with Google News) while still optimizing loading speed. Is it really impossible to improve loading times for featured images without losing compatibility with the Google News bot?
Looking forward to your feedback.
Thanks,
Antonio
Hi Antonio,
What you can try is to set both featured images and the one with img to be set with display none (hidden) on all view ports and only the one set as background to be visible https://i.imgur.com/lifnVWh.png to see the hidden elements you can enabled the option from manager – https://i.imgur.com/59lWqCF.png
I hope this will help!