Webflow sync, pageviews & more.
NEW

How can I resolve various performance issues, such as eliminating render-blocking resources, deferring unused CSS, ensuring text remains visible during webfont load, minimizing main-thread work, serving static assets with an efficient cache policy, reducing JavaScript execution time, avoiding an excessive DOM size, and minimizing Critical Requests Depth in my Webflow site?

TL;DR
  • Enable minification, defer non-critical scripts, and reduce unused CSS to eliminate render-blocking resources.
  • Use font-display: swap for webfonts, optimize animations and DOM structure, serve assets with proper caching, limit JavaScript execution, and lazy-load images for faster load times.

To resolve Webflow site performance issues, you need to optimize render-blocking resources, CSS, fonts, JavaScript, asset caching, DOM structure, and critical requests.

1. Eliminate Render-Blocking Resources

  • Minimize use of large third-party scripts (e.g., custom embeds, ad scripts).
  • Enable Webflow’s built-in JS/CSS minification: Go to Project Settings > Hosting, then enable Minify HTML, CSS, and JS.
  • Defer non-critical scripts: Move custom scripts to the Before tag section in Settings > Custom Code.

2. Defer Unused CSS

  • Reduce unnecessary classes and simplify styles in the Webflow Designer.
  • Avoid unused components or templates that introduce extra styles.
  • Consider exporting your code and using a tool like PurgeCSS externally if you need more aggressive CSS pruning.

3. Ensure Text Remains Visible During Webfont Load

  • Use font-display: swap by:
  • Hosting fonts externally (e.g., via Google Fonts),
  • Adding custom font CSS using font-display: swap in Project Settings > Custom Code > Head section.

4. Minimize Main-Thread Work

  • Reduce complex animations, interactions, and auto-playing media.
  • Use simple DOM structures and avoid deeply nested elements.
  • Limit use of Lottie animations and large background videos.

5. Serve Static Assets With an Efficient Cache Policy

  • Webflow already serves hosted assets with strong cache headers.
  • For externally hosted images or scripts:
  • Ensure your CDN applies long TTL cache headers.
  • Self-host repeated assets in Webflow’s Asset Manager if needed.

6. Reduce JavaScript Execution Time

  • Avoid unnecessary interactions in Webflow’s Interactions panel.
  • Delete unused components like forms, sliders, or tabs if you're not using them.
  • Limit use of custom JavaScript and avoid loading large libraries (e.g., jQuery plugins you don’t use).

7. Avoid an Excessive DOM Size

  • Avoid deeply nested layout structures.
  • Flatten your structure by using grid or flex layouts instead of multiple div wrappers.
  • Remove hidden or duplicated elements across pages or breakpoints.

8. Minimize Critical Request Depth

  • Webflow automatically defers some non-critical resources.
  • Reduce the number of required fonts and heavy assets above the fold.
  • Load images lazily using Webflow’s native lazy-loading option (set images to lazy in the Element Settings Panel).

Summary

To improve performance in your Webflow site: enable asset minification, minimize unused styles and scripts, optimize fonts with font-display: swap, serve assets efficiently, limit complex animations, streamline your DOM, and lazy-load images. Together, these actions target common performance metrics and improve load speed.

Rate this answer

Other Webflow Questions