aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2020-04-24 15:42:49 -0700
committerMark Otto <[email protected]>2020-04-26 17:26:04 -0700
commit28cb1ff2b23253293601c51aff434c39b461025e (patch)
tree40952df6ad462ed9fe799341e0faa9a14ac7c301
parentac58c25dc8b65928ac817b8a2bf7c0e46a58de97 (diff)
downloadbootstrap-28cb1ff2b23253293601c51aff434c39b461025e.tar.xz
bootstrap-28cb1ff2b23253293601c51aff434c39b461025e.zip
Fill in some unusedcss section links
-rw-r--r--site/content/docs/4.3/customize/optimize.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/site/content/docs/4.3/customize/optimize.md b/site/content/docs/4.3/customize/optimize.md
index 8a3b7e2be..eea4a7a3b 100644
--- a/site/content/docs/4.3/customize/optimize.md
+++ b/site/content/docs/4.3/customize/optimize.md
@@ -37,10 +37,17 @@ This way, you're not including any JavaScript you don't intend to use for compon
Bootstrap depends on Autoprefixer to automatically add browser prefixes to certain CSS properties. Prefixes are dictated by our `browserslist.rc` file, found in the root of the Bootstrap repo. Customizing this list of browsers and recompiling the Sass will automatically remove some CSS from your compiled CSS, if there are vendor prefixes unique to that browser or version.
-## Use Purge CSS
+## Unused CSS
_Help wanted with this section, please consider opening a PR. Thanks!_
+While we don't have a prebuilt example for using [PurgeCSS](https://github.com/FullHuman/purgecss) with Bootstrap, there are some helpful articles and walkthroughs that the community has written. Here are some options:
+
+- https://medium.com/dwarves-foundation/remove-unused-css-styles-from-bootstrap-using-purgecss-88395a2c5772
+- https://lukencode.com/2018/07/29/automatically-removeunused-css-from-bootstrap-or-other-frameworks/
+
+Lastly, this [CSS Tricks article on unused CSS](https://css-tricks.com/how-do-you-remove-unused-css-from-a-site/) shows how to use PurgeCSS and other similar tools.
+
## Minify and gzip
Whenever possible, be sure to compress all the code you serve to your visitors. If you're using Bootstrap dist files, try to stick to the minified versions (indicated by the `.min.css` and `.min.js` extensions). If you're building Bootstrap from the source with your own build system, be sure to implement your own minifiers for HTML, CSS, and JS.