Optimize your sites with post processing on Netlify
Tags: netlify, performance, optimization
Published: 2021-12-21 20:29:31

---
title: Optimize your sites with post processing on Netlify
published: true
description: Learn how to use Netlify's post-processing features to improve your sites' performance.
tags: Netlify, Performance, Optimization
cover_image: https://www.netlify.com/img/blog/og-optimize-site-post-processing.png
canonical_url: https://www.netlify.com/blog/2021/12/21/optimize-your-sites-with-post-processing-on-netlify/
series: Netlify - a feature a day 2021
---


> Throughout December we'll be [highlighting a different Netlify feature each day](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing). It might just be the thing you need to unlock those creative juices, and [dust off that domain](https://www.netlify.com/blog/2021/12/01/dusty-domains-your-forgotten-domains-raise-money-for-charity/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing) you registered but never deployed! Keep an eye [on the blog](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing) and on [Twitter](https://twitter.com/netlify) for each feature!
There are multiple ways to improve the performance of your website. From minifying resources to tree shaking, compressing files, reducing the amount of server requests, etc. Netlify can help in your quest to build the fastest sites with post-processing features.

Let's have a look at what's available!

### Snippet injection

I highlighted snippet injection in [yesterday's post](https://www.netlify.com/blog/2021/12/20/how-to-add-features-to-your-site-via-snippet-injection/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing), it's just one of the services available as post-processing and it's super handy. If you'd like to add some small feature to your site without bundling it as part of your codebase, maybe try snippet injection! Analytics or other scripts can be added at serve time in a simple step, either in the `</head>` or `</body>` of your HTML.

![Snippet injection UI](https://www.netlify.com/img/blog/blog-post-snippet-injection-empty.png)

### Asset optimization

Even though some of you may be handling asset optimization through Webpack or other tools inside your codebase, you can also do it via the Netlify UI!

![Asset optimisation options](https://www.netlify.com/img/blog/blog-post-asset-optimization.png)

These can also be configured in your `netlify.toml` file, using the `processing` property, for example:

```toml
[build.processing.js]
  bundle = true
  minify = false
```

### Prerendering

If you want to improve your SEO, you can enable prerendering for your site to allow search engines to crawl your app's pages.

![Prerendering UI](https://www.netlify.com/img/blog/blog-post-prerendering.png)

### Form detection

We looked at Netlify Forms earlier this month. You can [read about how they work in this post](/blog/2021/12/16/accepting-form-submissions-without-a-server/). But if you're **not** using Netlify Forms on your site, you might want to disable form detection to speed up your deploys. By default, Netlify's build bots scan new and updated HTML files to automatically handle forms.

![Form processing options](https://www.netlify.com/img/blog/blog-post-form-detection.png)

All of these features can be found in your site's settings page, under **Build & Deploy > Post processing.**

## More information

- [Docs: Snippet injection](https://docs.netlify.com/site-deploys/post-processing/snippet-injection/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing)
- [Docs: Post processing](https://docs.netlify.com/configure-builds/file-based-configuration/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing#post-processing)
- [Docs: Prerendering](https://docs.netlify.com/site-deploys/post-processing/prerendering/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing)
- [Docs: Form detection](https://docs.netlify.com/site-deploys/post-processing/form-detection/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=post-processing)