Felix Arntz
Forum Replies Created
-
Forum: Plugins
In reply to: [Native Lazyload] Blank images in Firefox and EdgeThanks for the report. Can you share some more context on your site, which theme/plugins are active? Would you be able to temporarily activate Native Lazyload briefly and share the HTML markup of the page that appears broken?
- This reply was modified 5 years, 6 months ago by Felix Arntz.
Forum: Plugins
In reply to: [Native Lazyload] How to use for theme images?The plugin should actually transform attributes for any image rendered with the WordPress function
wp_get_attachment_image()
. Have you tried that, or are you using another method to print images in your theme?Forum: Plugins
In reply to: [Native Lazyload] Doesn’t add any attributes to imagesThanks for the report. Can you share some more context on your site, which theme/plugins are active? I wonder if your site’s markup is generated with a different method from standard WordPress features maybe?
Forum: Plugins
In reply to: [Native Lazyload] Latest update doesn’t display images on homepageThanks for the report. Can you share some more context on your site, which theme/plugins are active? Would you be able to temporarily activate it briefly and share the HTML markup of the page that appears broken?
While that might somehow be possible (with
onload
attribute for example), for this scenario I’d recommend adding the actualwidth
andheight
attributes to the image tags generally. This prevents potential user experience issues with unexpected content shifting, and it would also get rid of the need for a custom callback I believe.Forum: Reviews
In reply to: [Native Lazyload] Breaks images… in ChromeThanks @kristoff-henry. The markup you shared actually looks correct on pageload, but there should be JavaScript code in the page too that would replace the placeholder
src
attributes with the original images from thedata-src
attributes. Can you check whether that JavaScript snippet is there? Do you see any JavaScript console errors that may cause it to break?As a temporary workaround, you could try to entirely disable the JavaScript fallback and see if it works then (which would however mean images are only lazy-loaded when the browser supports it). You could add this line of code somewhere:
add_filter( 'native_lazyload_fallback_script_enabled', '__return_false' );
- This reply was modified 5 years, 6 months ago by Felix Arntz.
Forum: Reviews
In reply to: [Native Lazyload] Worst PluginI’d like to resolve the problem on your site. Can you share some more context? Which theme/plugins are you using on the site? Would you be able to share the HTML markup with the plugin active?
Forum: Reviews
In reply to: [Native Lazyload] Doens’t work properly in all browsersCan you share some more context? Which theme/plugins are you using on the site? Would you be able to share the HTML markup with the plugin active?
Forum: Reviews
In reply to: [Native Lazyload] Breaks images and other thingsCan you share a bit more context about these sites? Which theme/plugins are they using? Could you enable the plugin quickly and share some of the HTML markup possibly? I’d like to figure out what’s going wrong there.
The image tags should have
loading
attributes and a few other modifications, there should be a script tag rewritingdata-src
tosrc
attributes somewhere in the footer.That’s odd. Can you tell me which theme and plugins you are using? I wonder why the
img
tags don’t receive theloading
attribute in your setup.I’m curious what’s causing this. What does the HTML markup of some of the images on your page look like? Do they contain the
loading="lazy"
attribute?Forum: Reviews
In reply to: [Native Lazyload] Breaks images… in ChromeThe 1.0.1 release I just pushed improves compatibility with certain scenarios possibly related to what you’re reporting (particularly Autoptimize). Let me know if your issue persists.
Forum: Plugins
In reply to: [Native Lazyload] Images DisappearThe 1.0.1 release I just pushed improves compatibility with certain scenarios possibly related to what you’re reporting. Let me know if your issue persists.
Forum: Plugins
In reply to: [Native Lazyload] Images not visible in Chrome 76The 1.0.1 release I just pushed improves compatibility with certain scenarios possibly related to what you’re reporting. Let me know if your issue persists.
Forum: Reviews
In reply to: [Native Lazyload] Breaks images… in ChromeDo you have the following Autoptimize option enabled?
Force JavaScript in <head>?
If so, that is what’s most likely causing the images to not appear. I opened https://github.com/GoogleChromeLabs/wp-native-lazyload/issues/6 to improve compatibility there.