Asset & Core Web Vitals Optimizer (LCP Preload, Zero-CLS, Fonts & Bloat)
Eliminate Slow-4G LCP and CLS bottlenecks with automatic Hero <img> and CSS background-image preloading, universal font-display:swap, full-bleed builder row CLS stabilization, and 16 KB small-CSS auto-inlining.
📋 On This Page (Jump to Section)
Module 1 (Asset & Core Web Vitals Optimizer) is engineered specifically to fix the real-world bottlenecks flagged by Google PageSpeed Insights on Slow-4G mobile connections: delayed hero images, render-blocking stylesheets, Flash of Invisible Text (FOIT), and Cumulative Layout Shift (CLS).
1. Auto-Preload Above-the-Fold LCP Image & Hero CSS Background (v3.0+) #
Many page builders (Elementor, Divi, Bricks, Beaver Builder, WPBakery) render the top hero banner as a CSS background-image: url(...) inside an external stylesheet (post-*.css) rather than an <img> tag—causing the browser to discover the hero image seconds too late. FBS Secure Optimize solves both automatically:
- Early Post-Viewport Preload Injection: Injects
<link rel="preload" as="image" fetchpriority="high" href="...">right after<meta name="viewport">in<head>. - 3-Source Hero Background Scanner: Inspects inline
style="..."attributes, inline<style>blocks, and local external page-builder/theme stylesheets across the top 32 KB of<body>(stripping:not(...)/:is(...)/:where(...)/:has(...)pseudo-classes, matching specificity tokens in reverse, and caching the resolved hero URL in a 6-hour salt-versioned transientfbsseop_lcp_css_*). - Hero
<img>Protection & Offscreen Demotion: Automatically strips accidentalloading="lazy"from your top hero image while stripping misplacedfetchpriority="high"from offscreen lazy-loaded images. - Manual LCP URL Override: Optionally paste an explicit Hero Image URL if you want to pin a specific asset sitewide.
2. Universal font-display: swap FOIT Eliminator & Font De-Blocker #
- Hoist & De-Block Chained CSS
@importGoogle Fonts: Extracts render-blocking@import url('https://fonts.googleapis.com/...')rules hidden inside themestyle.cssfiles, hoists them into parallelpreconnect+ non-blocking swap links in<head>, and serves a cached de-blocked stylesheet. - Universal
font-display: swapUpgrade (v3.0+): Automatically upgradesdisplay=autoordisplay=blockon Google Fonts URLs andfont-display: auto/blockinside inline text@font-facerules (such as Elementor Pro Custom Fonts) tofont-display: swapso mobile headings paint immediately without waiting for font downloads. - Icon Font Protection: Intelligently preserves
font-display: blockon icon font families (Font Awesome,eicons,ekiticons,dashicons) so icon glyphs never flash raw fallback squares. - Non-Blocking Decorative & Icon Stylesheets: Converts Font Awesome, Elementor Icons, Ionicons, Line Awesome, and Magnific Popup CSS to asynchronous
media="print" onload="this.media='all'"loading with<noscript>fallbacks.
3. Zero-CLS Layout Shift Stabilizers #
- Full-Width Builder Row & Inline SVG Stabilizer: Synchronously measures exact post-viewport
--fbs-cwgeometry immediately after<body ...>to prevent0.70+CLS jumps caused by JavaScript-stretched full-bleed rows in SiteOrigin Page Builder and WPBakery before First Paint, and injects intrinsicwidth/heightfromviewBoxon un-sized inline<svg>icons. - Full-Page Missing Image
width&heightInjection: Scans rendered HTML across headers, content, widgets, and footers for local raster and.svg<img>tags missing explicit dimensions and injects cachedwidthandheightattributes.
4. 16 KB Small-CSS Auto-Inlining, Iframe Lazy Load & Core Bloat Removal #
- Auto-Inline Small Local CSS (
<= 16 KB) & Strip0-Byte CSS: Eliminates sequential network round-trips by inlining small local stylesheets directly into<head>(automatically rewriting relativeurl(...)paths and filterable viafbsseop_inline_css_max_bytes) while stripping empty0-byte plugin CSS files. - Iframe & Video Lazy Loading: Defers offscreen YouTube, Vimeo, and Google Maps iframes until visitors scroll near them.
- Frontend Emoji, Dashicons, oEmbed & Heartbeat Controls: Strips WordPress emoji scripts on the frontend (strictly scoped to
! is_admin()sowp-adminicons remain crisp), dequeues frontend Dashicons for logged-out guests, removes oEmbed discovery clutter, and throttles the WordPress Heartbeat API to 60 seconds.