Issue with external font-awesome stylesheet; fonts not loading
-
When the font-awesome plugin is active ( https://www.ads-software.com/plugins/font-awesome/ ), it injects external font-awesome css files and fonts. Once pegasaas optimizes this code, it translates all these links into a !external-css,https format ( something in that sense ), which doesn’t seem to be loaded properly as font files by the browser.
Original code :
<link rel='stylesheet' id='font-awesome-official-css' href='https://use.fontawesome.com/releases/v5.9.0/css/all.css' type='text/css' media='all' integrity="sha384-i1LQnF23gykqWXg6jxC2ZbCbUMxyw5gLZY6UiUS98LYV5unm8GWmfkIS6jqJfb4E" crossorigin="anonymous" />
but in the combined.css the font urls change to :
src: url('https://<websiteurl>/wp-content/pegasaas-cache/!/external-css,https:/use.fontawesome.com/releases/v5.9.0/webfonts/fa-brands-400.eot');
This seems to break the font urls, and none of the fonts can be loaded properly. The woff, woff2, ttf, etc all seem to fail.
Some Chrome console output and request/response ( also note the expires header on the response ) : https://imgur.com/a/qOYzpu6
My current work-around is to add font-awesome manually to our child theme.
- The topic ‘Issue with external font-awesome stylesheet; fonts not loading’ is closed to new replies.