Performance
Trustbadg is built for fast storefronts:
| Principle | What it means for your site |
|---|---|
| No frontend JavaScript | Badges are server-rendered HTML + CSS only. No scripts on product or checkout pages. |
| Inline SVG icons | Bundled icons embed directly in the page—no extra HTTP request per icon. |
| Conditional CSS loading | Public stylesheet loads only on pages where a block, shortcode, or active automatic placement may render. |
| Cache-friendly output | Static HTML, no cookies, no frontend AJAX. Works with WP Rocket, LiteSpeed Cache, Cloudflare, and similar full-page caches. |
| Standard WooCommerce hooks | Placements use action hooks only—no direct order table access. HPOS-compatible. |
Best practices:
- Place payment and security badges at checkout and add-to-cart—not buried in the footer.
- Use separate badge sets when messaging differs (e.g., product vs checkout).
- Use blocks or shortcodes for landing pages and custom layouts.
