DEV Community

Discussion on: How we reduced our initial JS/CSS size by 67%

pavanmehta profile image
Pavan Maheshwari

I've seen a wepback plugin that lazily loads css. I'm not sure how that works or whether that's possible. But one of my colleagues showed it to me. Do youveyany experience with that?

goenning profile image
Guilherme Oenning Author

We only lazy load the css from the page splitting. But our main css bundle is always loaded synchronously. My understanding is that when lazy loading the whole css, if there’s a delay to download it, the user will first see an ugly and broken layout