Hi David
I’m lead developer from a3rev
First, thanks for you are using this plugin, i also have download and install your Youtube Embed plugin, i’m really like your plugin.
Yes, we don’t apply lazy load with all shortcodes from themes and another plugins, so it also does not work for your video shortcodes , but it still work for default shortcodes from WP. The reason we don’t support images/videos show from shortcodes so that it will have big problem with the slider/gallery plugins
But the lazy load plugin support some filter tags for themes or plugins can use to filter output content before show on frontend, below are 3 filter tags that we check if they are defined on themes or plugins:
'a3_lazy_load_html' tag : apply lazy load for all what we support as image, video, Facebook iframe, twitter iframe, ...
'a3_lazy_load_images' tag: apply lazy load for images only
'a3_lazy_load_videos' tag: apply lazy load for videos, iframe
For example the code like
return $your_output_content
then update it to
return apply_filters( 'a3_lazy_load_html', $your_output_content );
I have look on your plugin code version 3.3.2 and see that you just need to change bit on your plugin code to it compatibility with a3 Lazy Load
* Update on line 147 path includes/shortcodes.php
return do_shortcode( $youtube_code );
to
return apply_filters( 'a3_lazy_load_html', do_shortcode( $youtube_code ) );
* Update on line 59 path includes/generate-widgets.php
echo vye_generate_youtube_code ( $instance[ 'id' ], ... );
to
echo apply_filters( 'a3_lazy_load_html', vye_generate_youtube_code ( $instance[ 'id' ], ... ) );
Also want to tell you that current a3 Lazy Load just support videos loaded from <iframe>, <embed>, <video>
tags . That mean that it just support for default type IFrame from your plugin settings, it does not support for another types so that i checked and see they are using <object> tag. So to make it full compatibility between 2 plugins, you should change it to <embed> or <video>
if can, or a3 Lazy Load need to support the <object>
tag ( Actual we don’t want to support <object> tag, for now, video usually use <video> or <iframe> or <embed
> )
Regards,
Nguyen