[Resolved] FOUC Logo

Home Forums Support [Resolved] FOUC Logo

Home Forums Support FOUC Logo

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #884128
    Sebastien

    I’ve done. it seems the logo doesn’t fouc anymore .. any idea how can I keep this situation with Rocket activated?

    #884143
    David
    Staff
    Customer Support

    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.

    #884151
    Sebastien

    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?

    #884159
    David
    Staff
    Customer Support

    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.

    #884466
    Sebastien

    David,
    that works so far, thanks you so much my friend. you’re very impressive it’s like you already know all solutions ! 😮

    #884635
    David
    Staff
    Customer Support

    Haha – glad we could be of help.

Viewing 6 posts - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.