themefisher / airspace-hugo

Airspace Hugo theme for multipurpose use, like Portfolio, Blog, Business.
https://gethugothemes.com/products/airspace/?utm_source=airspace_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
351 stars 508 forks source link

preloader doesn't fadeout on firefox #76

Closed AaronCleaver closed 4 years ago

AaronCleaver commented 4 years ago

When opening the example site with firefox 74.0 the preloader div doesn't get faded so the screen remains plain white. (if you hit crtl-R repeatedly it correctly display approx 1 time out of 20).

Seems to be a race condition between the document.ready and window.load events.

fix should be to move the registering of the function for the load event outside of the ready function like this theme https://themes.gohugo.io/theme/infinity-hugo/js/main.js

❯ go version go version go1.13.3 linux/amd64 ❯ hugo version Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: unknown

somratpro commented 4 years ago

Thanks for your concern, i fix this issue, please take a pull.