-
Hi,
How to load Google Fonts when opening the page?
Sometimes I see Google Fonts only take effect after the page loaded?
Google Font without CSF: https://demo.wpenjoy.com/enjoyvideo (Google Font display first, no issues)
Google Font WITH CSF: https://demo.wpenjoy.com/enjoyvideo-pro (I firstly see the default font "serif", then Google Font)
Thanks!
Posted 2 years ago # -
Hi,
Yes, it's right. Let me explain it. Shortly:
//fonts.googleapis.com/css?family=Roboto:400,700&display=swap
CopyCopied!I am using display=swap attribute for font performance. Also it's default attribute. ( more info )
BUT, yes there is another way display=block you can try it:
//fonts.googleapis.com/css?family=Roboto:400,700&display=block
CopyCopied!Follow this steps:
Go to file /codestar-framework/classes/setup.class.php
Go to line 645
Change "swap" to "block"
Save and try
It works ?
Regards, Codestar
Posted 2 years ago # -
Thank you for your reply! It works!
It would be better if there is an option that we can set in admin-options.php.
Thanks!
Posted 2 years ago # -
Hi,
You're welcome.
Yes, yes. I am thinking that right now
Maybe a filter or option parameter. Ok I noted that, Follow the updates, It will come in next updates...
Regards, Codestar
Posted 2 years ago #