Minify your Shopify CSS and JavaScript to load pages faster
Automatically remove unnecessary code without affecting its functionality to improve site performance. Pick a theme, choose CSS, JavaScript, or both, select the assets to minify, and restore any asset you need.
Built for Shopify
Pick what to minify and reduce your theme file size
Back up your theme, pick what to minify, and click Activate.
Open TinySEO and go to Improve speed > Minify CSS/JS theme resources.
Go to the Online store section, click the three dots next to your theme, and click Duplicate. Then click Unlock and confirm with Yes, unlock.
Pick your theme, choose CSS, JavaScript, or both, select your assets, and then click Activate.
Remove unnecessary code and restore any file
Choose what to minify, see how many files changed on each theme, and restore any asset in one click.
Reduce code size without changing how it works
TinySEO deletes unnecessary characters such as whitespace, semicolons, and comments from your CSS and JavaScript, so these files download faster. You can safely navigate away while it runs and come back later.
/* Add to cart button */
.cart__submit {
margin-bottom: 1rem;
}
.cart__submit{margin-bottom:1rem}
// Open the cart drawer
function openCart() {
show(cart);
}
function openCart(){show(cart)}
Pick any theme
Minify your active theme or any other theme in your store.
Choose CSS, JavaScript, or both
Minify CSS only, JavaScript only, or both at once.
Choose your assets
Minify all of your assets or pick one specific file.
Restore any asset
Click Restore next to any file that causes an issue with your theme.
Track every theme
See how many files were minified on each theme and the date of the last update.
Find any file
Filter minified assets by theme or search for a file by name.
What is code minification?
Code minification is the process of deleting unnecessary characters from CSS or JavaScript source code without changing how it works. It makes the code more compact by removing such characters as whitespace, semicolons, and comments.
Why do I need this feature?
Code minification helps reduce the file size, meaning the scripts can be downloaded faster. This results in faster page load times and helps improve the overall user experience.
See how Shopify stores sped up with TinySEO
PageSpeed Insights score
First Contentful Paint improved from 4.7 s to 1.1 s.
PageSpeed Insights score
4,000+ images optimized and 2.26 GB saved.
PageSpeed Insights score
9,185 images optimized and 3.6 GB saved.
Frequently asked questions
No. Code minification deletes unnecessary characters from your CSS and JavaScript without changing how the code works. If an asset ever causes an issue with your theme, you can restore it under Minified assets.
Yes, you need to create a theme backup before minifying files to prevent issues. In Shopify admin, go to the Online store section, click the three dots next to your theme, and click Duplicate.
Yes, to restore files minified by TinySEO, click Restore next to any file under Minified assets. The fastest way to restore all minifications is to publish a theme backup.
Yes, TinySEO lets you choose which files to minify. Pick a theme, choose CSS only, JavaScript only, or both, and then minify all assets or one specific file.
It may take up to a few minutes. You can safely navigate away and come back later.



