Archived topic
Site Header or Menu Height fluctuation
8 replies · Started by Kevin on December 31, 2020
Hi,
I have made some changes to the site header and primary navigation menu through customization. Now, I am facing a problem with page header height. When we load a page, the header set with extra height and after few seconds the height becomes normal.
Can you please help me to resolve the problem?
My site URL: https://specrosoft.com
Hi David
Hope you guys are available now. Can you please give your suggestion for this issue or do you need more details to troubleshoot this problem?
Please find the gif image for the issue: https://ibb.co/71FfPJY
Hi there,
can you temporarily disable your Lazy Loader as i believe the issue is with the Logo being lazy loaded. If thats the case the you can add this PHP Snippet to exclude the Logo from lazyloading:
add_filter( 'jetpack_lazy_images_blacklisted_classes', 'bbloomer_exclude_custom_logo_class_from_lazy_load', 999, 1 );
function bbloomer_exclude_custom_logo_class_from_lazy_load( $classes ) {
$classes[] = 'is-logo-image';
return $classes;
}
Hi David,
Thanks for your reply.
The lazy loader is already disabled and yet to enable on my site. Please check the below image
Ok - you also have W3 Total Cache which is lazy loading the images.
I believe that has an option to Exclude words from a tag..... you can add is-logo-image to that list to exclude the logo
Hi David,
Yes, you are correct. The lazy load is the problem. The problem solved after disable the lazy load and your suggestion also works fine.
Meanwhile, if it is possible, can your team review my site and provide suggestions to improve the performance of the site. I have another site (https://morgantechspace.com) with GeneratePress which performs well. but this site (https://specrosoft.com) very slow to load. Also, I need suggestions on the plugins that I have used (ex: W3 Total Cache). If needed, I will create another thread.
Thanks for your support.
Can you create a new topic so this one can be set to resolved. Thanks
Thanks David,
I have created another topic: https://generatepress.com/forums/topic/performance-review-in-new-site/