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

Google Search Volatility

More Details

Search Video Recaps

 
Video Details More Videos Subscribe to Videos

Most Recent Articles

Blog Administration

Programming Note: Offline Monday For Yom Kippur 5787

Sep 20, 2026 - 10:00 am
Google

Google Web Guide Classic Search Button Doesn't Take You To Classic Search

Sep 20, 2026 - 9:30 am
Google Search Engine Optimization

Google Search Console Crawl Stats Missing A Day Of Data: September 15th

Sep 20, 2026 - 7:55 am
Google

Google Discover Tests Dive Deeper Feature

Sep 18, 2026 - 4:22 pm
Search Forum Recap

Daily Search Forum Recap: September 18, 2026

Sep 18, 2026 - 10:00 am
Search Video Recaps

Search News Buzz Video Recap: Unusual Google Search Ranking Volatility, Ad Tech Monopoly Remedies, AI Contribution Publisher Payouts & More

Sep 18, 2026 - 8:01 am
Previous Story: The Google Page Experience Scores Will Use AMP Version