| 开发者 | knuspermedia |
|---|---|
| 更新时间 | 2026年11月9日 16:24 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
font-display: swap@import of Google Fonts / Font Awesome inside theme and plugin stylesheets, also nestedpreconnect / dns-prefetch hints to these serverswp-content/uploads/knuspermedia-local-fonts-icons/. The plugin never stores JavaScript.
Check your pages
Under Settings → Local Fonts & Icons you can check any page of your site for remaining references to Google Fonts or Font Awesome, see which files were stored locally and clear the cache. Common page cache plugins (WP Rocket, W3 Total Cache, LiteSpeed Cache, WP Super Cache, Autoptimize and others) are purged automatically.
This plugin is a technical tool. It does not provide legal advice and cannot guarantee that your website complies with the GDPR or any other law.
WP-CLI
wp local-fonts-icons flush deletes all local copies and purges page cacheswp local-fonts-icons scan [<url>] checks a page for remaining referencesknuspermedia-local-fonts-icons folder to wp-content/plugins/.Yes. Fonts the builder adds to the page are localized, and fonts its scripts add later in the browser are blocked by the JavaScript guard. The plugin doesn't run inside the builder's editor preview.
The script (e.g. js/all.min.js) is replaced by the stylesheet of the same release (css/all.min.css). Icons look the same; features that only exist in the SVG version, such as layers, masking and power transforms, are not available. A script enqueued through WordPress is replaced right away, a script tag that a theme prints directly from the next page view on; common page caches are purged once at that moment, so the first view isn't kept.
A kit that is enqueued through WordPress is replaced right away. A kit whose script tag a theme prints directly is removed and replaced from the next page view on. Kits are replaced by Font Awesome Free, so Pro icons and custom kit icons are missing; bundle the Pro files with your theme instead. Pro stylesheets loaded from pro.fontawesome.com are mirrored if your domain is allowed in your Font Awesome account.
Yes, for stylesheets and scripts enqueued through WordPress. The login page is not a template, so WordPress doesn't buffer it and files that a plugin prints directly there stay untouched.
No. Only fonts and icons are handled. Other Google services need consent from your visitors, e.g. through a cookie consent tool. Fonts that Google Maps adds in the browser are blocked by the JavaScript guard.
Append ?nowpdf to the URL.