This week I learnt...

This week I learnt...


Code splitting

All about code splitting in (S)CSS and JS, why and how to do it.

Articles in this series

Code splitting with CSS and JS

Sep 4, 20213 min read

What is code splitting? Basically, it's splitting your code up into separate files, rather than having it all in one file. Let's say you have a really simple website with three sections: header, main and footer. You'd put your CSS for the header in o...