🚀 Web Performance optimization checklist
2021 Jul 16A checklist to improve web performance of your site, base on a workshop I attended at MozFest a while back
Cover photo credit unsplash
Performance checklist
ImageOptim
(?)
| Tool:SpriteCow
@import
to avoid blocking request<script>
tags to the end of the page.defer
for analytics librarydeferred
orasync
(?)animate.css
to only include the animations we use
Notes from a MozFest session on web performance
Web performance optimization
1 image formats
Eg SVG for icons and logosJPEG for photosPNG for everything else.
1 a. icon fonts
don’t use it.iconmoon.io eg get zip file from font awesome
2 compress images /optimise images
SVG: SVGOMGSVG/JPEG/PNG: Compressorosx: ImageOptimlinux: trimagewindows: fileOptimizer
3 Use image sprites
Sprites combine images into a single file.CSS code lets you use the images.
Tool: SpriteCow
4 Minify CSS & Javascript
Minifies for CSS and Javascript shorten variable names remove white spaces.Tool: CSS Minifier / Javascript Minifier
5 Concatenate your CSS & Javascript
concat minified CSS and JS improves HTTP request response time, it’s fewer files.
6 avoid CSSÂ @import
Rather use <link>
tag which allows you to download in parallel.rather then as a blocking request
7 Move all your <script>
tags to the end of the page.
right before