惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
V
V2EX
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
I
InfoQ
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
H
Help Net Security
腾讯CDC
D
Docker
P
Proofpoint News Feed
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
aimingoo的专栏
aimingoo的专栏

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
Berq Used CSS – Remove Unused CSS Automatically
hamzamairaj · 2026-05-31 · via Show HN

Every WordPress theme and plugin loads CSS for every possible feature – menus, sliders, pop-ups, forms, even on pages that don’t use any of them. All that extra CSS slows your site down and hurts your Google PageSpeed score.

Berq Used CSS fixes this automatically.

It scans each page of your website, figures out exactly which CSS rules are actually used, and saves a trimmed-down version. From that point on, visitors get only the CSS they need – nothing more. Pages load faster, your PageSpeed score goes up, and you didn’t have to touch a single line of code. It works with every WordPress theme, page builder, and plugin – including Elementor, Divi, WooCommerce, and Gutenberg – right out of the box.

How it works:

  1. A visitor lands on a page for the first time – the full, original stylesheet loads normally so nothing looks broken.
  2. In the background, the plugin analyses the page and saves a lean version of its CSS.
  3. Every visitor after that gets the smaller CSS file, and the page loads noticeably faster.

Features:

  • 100% free – no account, no sign-up, and no data sent to external servers
  • Automatically generates used CSS for every page – no manual work required
  • Processes pages quietly in the background so your site stays fast while it works
  • Three stylesheet loading modes: keep originals, load them after interaction, or remove them entirely
  • Exclude any URL or CSS selector you want to keep untouched
  • Strip web font declarations and background images from the generated CSS to save even more weight
  • Clears automatically when you save a post, update a plugin or theme, or change your design in the Customizer or Elementor
  • Compatible with WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, SiteGround Optimizer, Nginx Helper, and more
  • Works with every WordPress theme and plugin – no compatibility issues
  • Works alongside BerqWP for a fully optimised site
  • Settings page
  1. Upload the plugin to your site via Plugins Add New Upload Plugin, or search for “Berq Used CSS” in the plugin directory.
  2. Activate the plugin.
  3. Visit your website – used CSS will start generating automatically in the background. No configuration needed to get started.

Optional: go to Settings Berq Used CSS to choose a stylesheet loading mode, exclude specific pages, or clear the cache.

Do I need to create an account or sign up for anything?

No. Berq Used CSS works entirely on your own website. There is no account to create, no sign-up required, and no data is sent to any external server.

Will this break my website’s design?

No. On the first visit to any page, the full original stylesheet loads exactly as before – nothing changes visually. The plugin only serves the trimmed CSS once it has finished analysing the page in the background.

How long does it take to generate used CSS for my pages?

Most pages are processed within 15–30 seconds of the first visit. The plugin works quietly in the background so your visitors never notice anything happening.

What happens when I update my theme or a plugin?

The plugin automatically clears the saved CSS and re-generates it. This happens whenever you save a post, update a theme or plugin, make changes in the Customizer, or clear cache in Elementor.

Which stylesheet loading mode should I choose?

Start with Load immediately (the default) – this already gives you a faster page by serving lean CSS. If you want the maximum speed boost, try Load after interaction, which delays the original stylesheets until the visitor scrolls or clicks. Use Remove completely only if you are confident the generated used CSS covers everything your pages need.

Does it work with my theme and plugins?

Yes – Berq Used CSS works with every WordPress theme and plugin without any configuration. It reads the CSS that your pages actually output, so it doesn’t matter whether you use Elementor, Divi, WPBakery, Gutenberg, WooCommerce, or any other tool. If your page loads in a browser, the plugin can generate used CSS for it. When you save changes in Elementor or switch themes, the saved CSS is automatically cleared and re-generated.

Will it affect my Google PageSpeed / Core Web Vitals score?

Yes – removing unused CSS directly reduces the amount of render-blocking CSS the browser has to process, which improves First Contentful Paint (FCP) and other Core Web Vitals metrics.

There are no reviews for this plugin.

“Berq Used CSS – Remove Unused CSS Automatically” is open source software. The following people have contributed to this plugin.

Contributors

1.0.14

  • Update readme

1.0.13

  • Use wp_enqueue APIs for JS and CSS output instead of raw echo
  • Escape inline CSS output via wp_strip_all_tags
  • Fix unclosed output buffer – explicitly closed on shutdown
  • Fix protocol-relative URL path resolution in CSS extractor
  • Skip pages with query parameters from CSS generation
  • Invalidate used CSS on post save, theme/plugin update, Customizer, and Elementor changes
  • Add BerqWP cache compatibility hooks
  • Speed up heartbeat – first beat fires in 1s, base interval reduced to 3s

1.0.12

  • Update voku/simple_html_dom library version

1.0.11

  • WP Repo technical improvements

1.0.0

  • Initial release.
  • Automatic used CSS generation in the background for every page.
  • Three stylesheet loading modes: immediate, defer until interaction, remove.
  • Exclude specific URLs and CSS selectors.
  • Option to strip @font-face rules and background images.
  • Compatible with major caching plugins and BerqWP.
  • Automatic cache invalidation on post save, theme/plugin update, Customizer save, and Elementor changes.