Is Lighthouse flagging items from other projects on my Webflow website that are being conditionally hidden on the page, and are all elements from all my other collection pages being loaded and then hidden on every page?

Published on
September 22, 2023

When using Lighthouse to audit your Webflow website, it is possible that Lighthouse may flag items from other projects that are being conditionally hidden on the page. This happens because Lighthouse crawls all the resources loaded on the page, including those that are not visible.

However, it is important to note that just because Lighthouse flags these items, it doesn't mean that they are negatively impacting your website's performance. Lighthouse flags them because it assumes that all the elements on the page are potentially visible, even if you have used conditional hiding to hide them in certain cases. This doesn't necessarily mean that all the elements from other collection pages are being loaded and then hidden on every page.

Webflow is designed to load only the necessary resources for the current page being visited, so it doesn't load elements from other collection pages if they are not needed. This ensures better performance and reduces unnecessary resource loading.

To further optimize your website and address any flagged items from Lighthouse, you can consider the following approaches:

  1. Optimize your conditional hiding: Make sure that you are using efficient conditionals to hide elements on your pages. If possible, use native Webflow interactions or custom code to dynamically show/hide elements based on specific conditions.

  2. Lazy loading: Implement lazy loading for images and other heavy media assets. This technique delays the loading of images until they are about to come into view, reducing initial page load time.

  3. Server-side rendering: If you have a lot of dynamic content on your pages, consider server-side rendering (SSR) to generate the HTML on the server rather than relying solely on client-side rendering. SSR can improve page load speed and overall performance.

  4. Use pagination: If you have a large number of collection items, consider implementing pagination to load a limited number of items on each page. This can significantly improve loading time and reduce the number of flagged items by Lighthouse.

By following these optimization techniques and strategies, you can ensure that your Webflow website is performing efficiently and minimizing any flagged items from Lighthouse.

Additional questions:

  1. How can I optimize my Webflow website's performance?
  2. What is lazy loading and how can I implement it in Webflow?
  3. What are the benefits of server-side rendering in Webflow?