After attempting to integrate a Google Font API into my website by adding the following code to my HTML:
<link href="https://fonts.googleapis.com/css?family=Playfair+Display|Source+Serif+Pro|Suwannaphum&display=swap" rel="stylesheet">
I encountered an issue where text using the specified font would briefly display as small before returning to its normal size.
Through trial and error, I discovered that removing the &display=swap
section from the code resolved the glitch and allowed me to use the font without any issues.
I am curious as to why including &display=swap
caused this glitch, especially since I directly copied the code from the Google Fonts API website.