View Single Post
Old 03-21-2021, 12:31 PM  
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,215
Quote:
Originally Posted by kingtom2020 View Post
Since update to wordpress they have added a auto lazy load to iframes. Since then Ive seen my cam embeds go down 100% in sign ups?

Anyone else seeing massive drop in sign ups from cam list embeds?
Use this in functions:

Code:
function disable_post_content_iframe_lazy_loading( $default, $tag_name, $context ) {
    if ( 'iframe' === $tag_name && 'the_content' === $context ) {
        return false;
    }
    return $default;
}
add_filter(
    'wp_lazy_loading_enabled',
    'disable_post_content_iframe_lazy_loading',
    10,
    3
);
Or use a plugin: https://wordpress.org/plugins/disabl...g-for-iframes/


I think WP only makes an iframe loading=lazy only if the height and width is defined, too.
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote