NMoore-STEM / ASC-LLC-Redesign

Ananda Science Consulting webpage redesign
https://anandascience.com/
0 stars 0 forks source link

ASC, NM Portfolio, etc. - All pages using "Spartan" font #547

Closed NMoore-STEM closed 1 year ago

NMoore-STEM commented 1 year ago

Recently saw in console

XML Parsing Error: not well-formed

when modifying contact page for ASC. I tried to address the issue by looking through the XML I had already - did not seem to fix the issue. Next, I revisted the google fonts website to generate the link for my font resources in head and discovered that the Spartan font has not been on the google fonts service for nearly a year. Unfortunately, much of my content across webpages utilizes this font so this will need to be addressed. Thinking of replacing the google fonts resource with hosting the font from my webhosting/server as a .ttf or .woff/.woff2. to see if this resolves the error I am getting on the console. I must be vigilant to measure loading times and alternatives once this is implemented (post-launch) as if retaining this specific font comes at a high cost, an alternative must be found.

NMoore-STEM commented 1 year ago

A few ideas to help explore this issue...

  1. ASC home page does not give this same warning, yet uses Spartan and is visible in header nav text. Compare what is in the head element for each page and see if there is a difference.
  2. Can always swap out Spartan font for League Spartan, which is its closest replacement on google fonts.
  3. host the font

Also noticed that Spartan is still displaying on "thank you" sent confirmation of contact page, so it is loading from somewhere, possibly not causing the XML console error...

NMoore-STEM commented 1 year ago

Upon revisiting this issue, keeping the original request to google fonts seems to still load spartan font even though it is no longer listed. I checked in the dev console on both chromium and gecko (firefox) and the font asset for spartan was still loading. Because there, technically, is no change affecting my webpages using this font, I will not take action on this issue.

It should be noted to keep an eye on this font as google may not serve it in the future. Should this happen, revert to using league spartan.

I did try to replace spartan with league spartan, but the request did not seem to work.