Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title becomes bold during navigation #15

Closed
avarabyeu opened this issue Nov 21, 2016 · 4 comments
Closed

Title becomes bold during navigation #15

avarabyeu opened this issue Nov 21, 2016 · 4 comments

Comments

@avarabyeu
Copy link

Sometimes title becomes bold, then becomes normal again.
Steps to reproduce:

  1. Open http://chalk.nielsenramon.com/
  2. Click at 'How to configure Chalk' (it usually appears with this blog post)

Looking forward for a fix.
P.S. Theme is awesome, many thanks for sharing it!

@nielsenramon
Copy link
Owner

@avarabyeu That's normal, it's the google fonts async delay. So it uses the system font first until the google font has been downloaded. I know it's not that nice but it's the optimal option for Google PageSpeed. You can disable the async version if you just include the default script tag from their website!

@avarabyeu
Copy link
Author

@nielsenramon just replaced 'WebFont.load...' with standard directives, but still no luck, behaviour is the same. Maybe, i'm doing smth wrong. May i ask you to have a look?

{% javascript vendor %}
{% javascript application %}

<!-- <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script> -->
<link href="https://fonts.googleapis.com/css?family=Cormorant+Garamond:700;subset=cyrillic" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700;subset=cyrillic" rel="stylesheet">

<!-- <script>
  WebFont.load({
    google: {
      families: ['Cormorant Garamond:700', 'Lato:300,400,700']
    }
  });
</script> -->

{% if site.ga_analytics %}
  <script>
    window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
    ga('create','{{ site.ga_analytics }}','auto');ga('send','pageview')
  </script>
  <script src="https://www.google-analytics.com/analytics.js" async defer></script>
{% endif %}

@nielsenramon
Copy link
Owner

@avarabyeu Put the 2 scripts in the <head> ;-)
Also you can make 1 script link of that.

@avarabyeu
Copy link
Author

@nielsenramon Thanks a lot!! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants