Hi,
Theme file /wp-content/themes/Newspaper/images/icons/newspaper.woff is triggering too many CPU executions (15000 + in September). I have started to notice this recently. Any help?
Regards
You may want to ensure you’ve add the mime type to your system, added an expiration header for caching, etc.
Do you have expiration headers added to your htaccess for .woff — did you add filetype handlers for .woff and .woff2 if your server not already setup for those?
If using a caching plugin make sure it understands a .woff font for caching.
It’s basically a ‘slimmed’ version of FontAwesome, so really works same way.
e.g.,
AddType image/webp .webp
AddType application/woff2 .woff2
<IfModule mod_expires.c>
ExpiresActive On
# ExpiresDefault "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType text/x-component "access plus 1 month"
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType text/shtml "access plus 0 seconds"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/webp "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>
