Pageflare applies over 12 individual optimizations to every static WordPress export. Here’s a breakdown of what each one does and why it matters.
Performance: HTML, CSS, and JS
HTML Minification — Strips whitespace, HTML comments, and redundant attributes from every HTML file. Typical savings range from 15% to 25% depending on how WordPress generated the markup.
JS Defer & Minify — Non-critical scripts are moved to the end of the document and given the defer attribute. Dead code is removed. Bundles are minified. This eliminates render-blocking JavaScript, which is one of the most common causes of poor Largest Contentful Paint scores.
CSS Minification — Shorthand properties are collapsed, dead rules removed, and render-blocking stylesheets are handled. Critical CSS can be inlined to eliminate the stylesheet round-trip for above-the-fold content.
Media: Images and Video
Image Optimization — Every image tag is audited. Missing width and height attributes are injected (preventing cumulative layout shift), loading="lazy" is added to images below the fold, and srcset attributes are generated for responsive delivery.
YouTube Facades — YouTube iframes are replaced with lightweight thumbnail placeholders. Each YouTube embed loads approximately 500kb of JavaScript — facades eliminate that cost entirely until the user clicks to play.
Fonts: Self-Hosting
Google Fonts Self-Hosting — Pageflare detects Google Fonts references in your HTML and CSS, downloads the font files, converts them to woff2 format, and rewrites the references to point to your local copies. It also injects font-display: swap to ensure text is visible immediately while fonts load.
WordPress-Specific: Bloat and Security
WordPress Bloat Removal — WordPress adds a surprising amount of overhead to every page: emoji detection scripts, oEmbed discovery links, REST API endpoint headers, generator meta tags revealing the WordPress version, and jQuery Migrate. Pageflare removes all of it.
Security Hardening — External links get rel="noopener noreferrer" to prevent tab-napping attacks. Version strings are stripped from asset URLs. Preconnect hints are added for any remaining third-party origins.
Navigation: Speculation Rules
Speculation Rules — Pageflare injects the Speculation Rules API to prefetch pages on hover. In supporting browsers (Chrome, Edge), this makes internal page navigations feel nearly instant. Pages are preloaded before the user clicks.
All 12+ optimizations run in a single CLI pass with zero configuration. Point pageflare at your static export directory and everything is handled automatically.