95–100/100 Lighthouse Speed A+ Security Headers Enforced
Official WP.org Plugins: Pro Licenses from $15/yr or $49 Lifetime! Explore Plugins →

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).

FBS Secure Optimize Speed and Core Web Vitals Optimization Panel

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 transient fbsseop_lcp_css_*).
  • Hero <img> Protection & Offscreen Demotion: Automatically strips accidental loading="lazy" from your top hero image while stripping misplaced fetchpriority="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 @import Google Fonts: Extracts render-blocking @import url('https://fonts.googleapis.com/...') rules hidden inside theme style.css files, hoists them into parallel preconnect + non-blocking swap links in <head>, and serves a cached de-blocked stylesheet.
  • Universal font-display: swap Upgrade (v3.0+): Automatically upgrades display=auto or display=block on Google Fonts URLs and font-display: auto/block inside inline text @font-face rules (such as Elementor Pro Custom Fonts) to font-display: swap so mobile headings paint immediately without waiting for font downloads.
  • Icon Font Protection: Intelligently preserves font-display: block on 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-cw geometry immediately after <body ...> to prevent 0.70+ CLS jumps caused by JavaScript-stretched full-bleed rows in SiteOrigin Page Builder and WPBakery before First Paint, and injects intrinsic width/height from viewBox on un-sized inline <svg> icons.
  • Full-Page Missing Image width & height Injection: Scans rendered HTML across headers, content, widgets, and footers for local raster and .svg <img> tags missing explicit dimensions and injects cached width and height attributes.

4. 16 KB Small-CSS Auto-Inlining, Iframe Lazy Load & Core Bloat Removal #

  • Auto-Inline Small Local CSS (<= 16 KB) & Strip 0-Byte CSS: Eliminates sequential network round-trips by inlining small local stylesheets directly into <head> (automatically rewriting relative url(...) paths and filterable via fbsseop_inline_css_max_bytes) while stripping empty 0-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() so wp-admin icons remain crisp), dequeues frontend Dashicons for logged-out guests, removes oEmbed discovery clutter, and throttles the WordPress Heartbeat API to 60 seconds.
Ready to Scale Faster & Safer?

Partner directly with our senior engineering studio. Whether you need hidden malware removed, a 99+ PageSpeed overhaul, a custom WooCommerce plugin, or a Laravel web application, we deliver clean, battle-tested code on a staging copy first.

99+ PageSpeed Score Target
A+ HTTP Security Rating
100% WPCS & Clean OOP Code