-
Notifications
You must be signed in to change notification settings - Fork 208
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
Social icons are reloading/flashing when navigating #55
Comments
@jcdepth The social icons are part of Font-Awesome. In my personal site, instead of directly loading FA's CSSs, I've used deferred FA JavaScript loading. That's the reason of the flashing/flickering of social icons. The reason I chose deferred JS for FA was that, the social icons aren't the most important parts of the site or post, they can be loaded later, saving some loading time on the critical rendering path for other stuffs that the reader might want to see first ;) |
Thanks for the reply! How would I tweak when Fontawesome is loading? I'm guessing that because the demo site on gohugo.io doesn't load like this, it may be a setting in how Hugo is building the site? |
@jcdepth Sorry for the misleading info. During https://github.com/htr3n/hyde-hyde/blob/master/layouts/partials/footer/font-awesome-js.html That's the main cause of flashing/flickering as the social icons of FA will be loaded almost at the end of the page loading. The demo site on https://themes.gohugo.io uses the same code base but, I guess, the flickering/flashing is quicker/shorter and perhaps unnoticeable (e.g. due to faster hosting or caching) compared to my Github site. |
@jcdepth As haven't heard from you since the last comment, I will close this issue for now. Please feel free to reopen it any time for following up. |
Hi there, something that I've noticed is that when navigating between pages, the social icons seem to "flash", which suggests they may be reloading each time?
I've looked at your personal live site and this occurs there too, so it doesn't seem to be an issue specific to my environment/machine. Interestingly enough, the demo site doesn't experience this issue: https://themes.gohugo.io/theme/hyde-hyde/.
I've looked at some other themes/sites derived from the original
hyde
theme for Hugo, and they don't seem to have this issue:hyde-y
themeThis is by no means a critical issue, I was just wondering if there's a simple way to change this.
Thanks!
The text was updated successfully, but these errors were encountered: