Bug report: Excessive font loading (AGAIN)
-
More than four years ago I discovered that Hueman loads too many fonts. In Safari, Hueman even loads some fonts twice! I reported the issue, and @nikeo followed up by writing “thanks for reporting this issue. I’m exploring it.” The topic was closed.
Later I explained the problem in detail in this thread.
@nikeo wrote: “I’m currently focused on fixing minor issues with the upcoming version of WP (5.8). The font preload optimization is next in my list.” Also this topic was closed.On GitHub, the issue is marked as Bug and Urgent – see here.
I know the Hueman theme receives little support, but I wanted to bring attention to this issue in case @nikeo or @amirzia have time to have a look. Here are my main finds:
1) Hueman preloads 8 (!) different woff/woff2 font files, even if several of them are not used for rendering the page. E.g., here are the Warnings I see in Firefox (the issue is more severe in Safari):
The resource at “…/themes/hueman/assets/front/webfonts/fa-regular-400.woff2?v=5.15.2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.
The resource at “…/themes/hueman/assets/front/fonts/titillium-lightitalic-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.
The resource at “…/themes/hueman/assets/front/fonts/titillium-regularitalic-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.2) In addition, if Safari is used, the svg versions of Titillium is also loaded, which adds another 3 or 4 font files, giving a total of 11–12 (!) font files in order to load a website using Hueman. This seems like a bug.
Comments (not related to the potential bug when using Safari):
Hueman uses too many fonts. The theme author might have inherited this issue from @alxmedia, who is the original author of this fantastic theme. I hope Hueman in the future will rely on a smaller set of fonts. The typography and layout of Hueman does not need 8 different woff/woff2 font files in order to look good.
Also, Hueman (probably) preloads too many font files. The theme preloads all fonts, regardless of whether the page uses them or not. I’m not an expert, so I don’t know if this is easy to fix.
Useful info on fonts and font preload: https://sia.codes/posts/making-google-fonts-faster/
The topic ‘Bug report: Excessive font loading (AGAIN)’ is closed to new replies.
