Archived topic
FOUC Logo
20 replies · Started by Sebastien on April 29, 2019
I've done. it seems the logo doesn't fouc anymore .. any idea how can I keep this situation with Rocket activated?
They provide this guide to testing which setting is causing the issue:
https://docs.wp-rocket.me/article/106-my-site-is-broken
Its generally a problem related to combining and minifying CSS files, but you will need to follow the guide to pin down the problem.
thanks a lot.
I've pointed the error, this is the LAZYLOAD option.
Is there a way to don't allow LAZYLOAD into the LOGO only?
You can try this PHP snippet:
function rocket_lazyload_exclude_class( $attributes ) {
$attributes[] = 'class="header-image"';
return $attributes;
}
add_filter( 'rocket_lazyload_excluded_attributes', 'rocket_lazyload_exclude_class' );
That should exclude the site logo.
David,
that works so far, thanks you so much my friend. you're very impressive it's like you already know all solutions ! :o
Haha - glad we could be of help.