Should You Break Up Your CSS & JavaScript Files Into Smaller Chunks? Here Is What Google Said.

Jun 17, 2020 - 8:18 am 2 by

Google Chunks

Bartosz Goralewicz asked Martin Splitt of Google an interesting question. He asked if we should break out CSS and JavaScript files into smaller chunks of files or not. The answer from Martin is a long one but in short, it depends. :-)

It seems like using smaller chunks can help a bit with debugging issues and also with Google caching things but it can cause other issues. So if you do it, make your chunks reasonable and don't over do it. Bartosz summed it up on Twitter saying "It is good to have *reasonable* chunks but also - don't go crazy with deploying changes every few hours for all the files. It is better to only deploy changes to a single file that *needs* it, rather than change versions just for the sake of deployment?"

Here is the question:

Here is his seven part answer:

But here is a bit more:

Forum discussion at Twitter.

 

Popular Categories

The Pulse of the search community

Search Video Recaps

 
- YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Search Forum Recap

Daily Search Forum Recap: April 21, 2025

Apr 21, 2025 - 10:00 am
Google

Google Drops Event Rich Results Carousel On Desktop Search: Bug?

Apr 21, 2025 - 7:51 am
Google

Google Live Demo Of Android AR Glasses

Apr 21, 2025 - 7:41 am
Search News

IAB/PWC: U.S Search Ad Revenue Grew 15.9% With $102.9 Billion In 2024

Apr 21, 2025 - 7:31 am
Bing SEO

Bing Webmaster Tools Working To Streamline Email Notifications

Apr 21, 2025 - 7:21 am
Bing Search

Microsoft Launches Copilot Merchant Program

Apr 21, 2025 - 7:11 am
Previous Story: The Google Page Experience Scores Will Use AMP Version