Gatsby CSS loading

I have a little trouble understanding how CSS is loading with Gatsby framework. From what I read, all CSS is being processed by webpack and put in the head tag, meaning all styles for all pages will be included right after the page is loaded for the first time. Is there any way I can load CSS only for pages and components the user wants to see?

Source: React – Stack Overflow

November 22, 2021
Category : News
Tags: gatsby | reactjs | webpack

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.