DEV Community

loading...

Discussion on: Adding a Loader Spinner in Gatsby site

Collapse
simonjoom profile image
simz

Thanks for the post, i began in a same way and wanted to confirm with others.
You can add to put the style of the loader directly in html.js too, to avoid gatsby load others css and script before the one of the loader

<style dangerouslySetInnerHTML={{ __html: `.preloader-wrapper ;.. `}}>
Enter fullscreen mode Exit fullscreen mode


`